add multiple architectures
This commit is contained in:
parent
cfbb95e93e
commit
83fbe2665d
1 changed files with 12 additions and 10 deletions
22
.github/workflows/rust.yml
vendored
22
.github/workflows/rust.yml
vendored
|
@ -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
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue