Release #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- published | |
jobs: | |
test: | |
name: Build | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
# - name: Install protoc | |
# id: deps-protoc | |
# shell: bash | |
# run: | | |
# curl -Lo /tmp/protoc.zip \ | |
# "https://github.com/protocolbuffers/protobuf/releases/download/v27.3/protoc-27.3-linux-x86_64.zip" | |
# unzip -o /tmp/protoc.zip -d ${HOME}/.local | |
# echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV | |
# export PATH="${PATH}:${HOME}/.local/bin" | |
# | |
# - name: Add Rust targets | |
# run: rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu x86_64-apple-darwin aarch64-apple-darwin | |
# | |
# - name: Build for Linux x86 | |
# run: cargo build -r --target=x86_64-unknown-linux-gnu --verbose && mv target/aarch64-apple-darwin/platform-cli ./platform-cli_x86_64-gnu | |
# | |
# - name: Build for Linux arm64 | |
# run: cargo build -r --target=aarch64-unknown-linux-gnu --verbose && mv target/aarch64-unknown-linux-gnu/platform-cli ./platform-cli-arm64-gnu | |
# | |
# - name: Build for Apple x86 | |
# run: cargo build -r --target=x86_64-apple-darwin --verbose && mv target/x86_64-apple-darwin/platform-cli ./platform-cli_x86_64-darwin | |
# | |
# - name: Build for Apple Silicon | |
# run: cargo build -r --target=aarch64-apple-darwin --verbose && mv target/aarch64-apple-darwin/platform-cli ./platform-cli_arm64-darwin | |
- name: Build for Apple Silicon | |
run: touch asset.txt | |
- uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
asset.txt |