add multiple architectures

This commit is contained in:
Chance 2024-12-01 18:23:20 -05:00 committed by lily
parent cfbb95e93e
commit 83fbe2665d
Signed by: lily
GPG key ID: 601F3263FBCBC4B9

View file

@ -14,6 +14,12 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest] os: [ubuntu-latest, windows-latest]
arch: [x86_64, aarch64]
include:
- arch: x86_64
target: x86_64-unknown-linux-gnu
- arch: aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
@ -24,22 +30,18 @@ jobs:
with: with:
toolchain: stable toolchain: stable
override: true override: true
target: x86_64-unknown-linux-gnu target: ${{ matrix.target }}
- name: Build - name: Build
run: cargo build --release run: cargo build --release --target ${{ matrix.target }}
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose --target ${{ matrix.target }}
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ runner.os }}-binary name: Zenyx-${{ runner.os }}-${{ matrix.arch }}-binary
path: | path: |
target/release/*.exe target/${{ matrix.target }}/release/*.exe
target/release/* target/${{ matrix.target }}/release/*[^.]*
!target/release/*.d
!target/release/*.pdb