Skip to content

Commit

Permalink
add macos-arm64 target
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Feb 7, 2024
1 parent 25ac2c7 commit 316ef59
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,16 @@ jobs:
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: macos-arm64
os: macos-latest
rust: stable
target: aarch64-apple-darwin
- build: windows-amd64
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc

# usual build targets
# other usual build targets
- build: stable-x86
os: ubuntu-latest
rust: stable
Expand Down Expand Up @@ -148,9 +152,17 @@ jobs:
curl -LO "https://github.com/cross-rs/cross/releases/download/$CROSS_VERSION/cross-x86_64-unknown-linux-musl.tar.gz"
tar xf cross-x86_64-unknown-linux-musl.tar.gz
echo "CARGO=cross" >> $GITHUB_ENV
- name: Configure target flags
if: matrix.target != ''
run: |
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
- name: Install the target
if: matrix.os != 'ubuntu-latest' && matrix.target != ''
run: rustup target add ${{ matrix.target }}

- name: Show command used for Cargo
run: |
echo "cargo command is: ${{ env.CARGO }}"
Expand Down

0 comments on commit 316ef59

Please sign in to comment.