Skip to content

Commit

Permalink
Build for multiple arches
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeoghegan committed Jun 7, 2024
1 parent 6c3a804 commit cf91467
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ env:
CARGO_TERM_COLOR: always

jobs:
build_rust:
build-cli:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
runs-on: matrix.os
arch: ["x86_64", "aarch64"],
target: [
{ os: "ubuntu-latest", triple-suffix: "-unknown-linux-gnu" },
{ os: "windows-latest", triple-suffix: "-pc-windows-msvc" },
{ os: "macos-latest", triple-suffix: "-apple-darwin" }
]
runs-on: matrix.target.os
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}
- name: build
run: cargo build --package divviup-cli --profile release
run: |
cargo build \
--package divviup-cli \
--profile release \
--target ${{ format('{0}{1}', matrix.arch, matrix.target.triple-suffix) }}

0 comments on commit cf91467

Please sign in to comment.