fix cross compilation?
This commit is contained in:
parent
ff849d83da
commit
3e7de4866f
1 changed files with 13 additions and 7 deletions
20
.github/workflows/rust.yml
vendored
20
.github/workflows/rust.yml
vendored
|
@ -15,11 +15,19 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
arch: [x86_64, aarch64]
|
arch: [x86_64, aarch64]
|
||||||
|
exclude:
|
||||||
|
- os: windows-latest
|
||||||
|
arch: aarch64
|
||||||
include:
|
include:
|
||||||
- arch: x86_64
|
- os: ubuntu-latest
|
||||||
|
arch: x86_64
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
- arch: aarch64
|
- os: ubuntu-latest
|
||||||
|
arch: aarch64
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
|
- os: windows-latest
|
||||||
|
arch: x86_64
|
||||||
|
target: x86_64-pc-windows-msvc
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -33,7 +41,7 @@ jobs:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Install cross-compilation tools
|
- name: Install cross-compilation tools
|
||||||
if: matrix.arch == 'aarch64'
|
if: matrix.arch == 'aarch64' && matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
@ -51,7 +59,5 @@ jobs:
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Zenyx-${{ runner.os }}-${{ matrix.arch }}-binary
|
name: Zenyx-${{ matrix.os == 'windows-latest' && 'windows' || 'linux' }}-${{ matrix.arch }}-binary
|
||||||
path: |
|
path: target/${{ matrix.target }}/release/${{ matrix.os == 'windows-latest' && '*.exe' || '*[^.]*' }}
|
||||||
target/${{ matrix.target }}/release/*.exe
|
|
||||||
target/${{ matrix.target }}/release/*[^.]*
|
|
Loading…
Add table
Add a link
Reference in a new issue