fix build #8
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: Test | |
on: | |
push: | |
branches: [ "release-build" ] | |
env: | |
CARGO_TERM_COLOR: always | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
release-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install x86 toolchain | |
run: | | |
rustup toolchain install x86_64-apple-darwin | |
- name: Build | |
run: | | |
cargo build --release --target x86_64-apple-darwin | |
cargo build --release | |
- name: upload-binary | |
run: | | |
zip -j -r gen.macos-arm64.zip target/release/gen | |
zip -j -r gen.macos-x86.zip target/x86_64-apple-darwin/gen | |
gh release upload nightly gen.macos-arm64.zip --clobber | |
gh release upload nightly gen.macos-x86.zip --clobber | |
release-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Build | |
run: | | |
cargo build --release | |
- name: upload-binary | |
run: | | |
zip -j -r gen.ubuntu.zip target/release/gen | |
gh release upload nightly gen.ubuntu.zip --clobber |