Skip to content

Commit

Permalink
Use cargo-cross here.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceejbot committed Aug 4, 2022
1 parent ee3d774 commit e337a13
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ jobs:
asset_name: tomato_amd64_linux
asset_content_type: application/octet-stream

- name: install the arm toolchain
run: rustup target install aarch64-unknown-linux-gnu
- name: build for arm64
run: cargo build --target aarch64-unknown-linux-gnu --release
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: --release --target aarch64-unknown-linux-gnu

- name: upload arm64 linux release
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit e337a13

Please sign in to comment.