Test Building for Apple #7
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: Test Build | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
target: aarch64-apple-darwin,aarch64-unknown-linux-gnu,x86_64-apple-darwin,x86_64-pc-windows-msvc,x86_64-unknown-linux-gnu | |
- uses: arduino/setup-protoc@v3 | |
#- name: Build for all targets | |
# run: | | |
# cargo build --release --target aarch64-apple-darwin | |
# cargo build --release --target aarch64-unknown-linux-gnu | |
# cargo build --release --target x86_64-apple-darwin | |
# cargo build --release --target x86_64-pc-windows-msvc | |
# cargo build --release --target x86_64-unknown-linux-gnu | |
- name: Get Package Version | |
id: get_package_version | |
run: echo "PACKAGE_VERSION=$(cargo pkgid | cut -d '#' -f 2 | cut -d ':' -f 2)" >> $GITHUB_ENV | |
- run: echo Built for version ${{ env.PACKAGE_VERSION }} | |
- run: cargo run |