Release aarch64-unknown-linux-gnu binaries (#843)

This commit is contained in:
Casey Rodarmor 2021-05-27 18:14:01 -07:00 committed by GitHub
parent 0fbf3020ed
commit c40b4e6b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 14 deletions

2
.cargo/config Normal file
View File

@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

View File

@ -16,17 +16,24 @@ jobs:
strategy: strategy:
matrix: matrix:
os: target:
- macos-latest - x86_64-unknown-linux-musl
- ubuntu-latest - x86_64-apple-darwin
- windows-2016 - x86_64-pc-windows-msvc
- aarch64-unknown-linux-gnu
include: include:
- os: ubuntu-latest - target: x86_64-unknown-linux-musl
target: x86_64-unknown-linux-musl os: ubuntu-latest
- os: macos-latest native: true
target: x86_64-apple-darwin - target: x86_64-apple-darwin
- os: windows-2016 os: macos-latest
target: x86_64-pc-windows-msvc native: true
- target: x86_64-pc-windows-msvc
os: windows-2016
native: true
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
native: false
runs-on: ${{matrix.os}} runs-on: ${{matrix.os}}
@ -51,7 +58,12 @@ jobs:
~/.cargo/registry ~/.cargo/registry
~/.cargo/git ~/.cargo/git
target target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ matrix.configration.os }}-${{ matrix.target }} cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Update Ubuntu Packages
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
- name: Install Main Toolchain - name: Install Main Toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@ -59,9 +71,13 @@ jobs:
toolchain: stable toolchain: stable
target: ${{ matrix.target }} target: ${{ matrix.target }}
profile: minimal profile: minimal
components: clippy, rustfmt components: clippy
override: true override: true
- name: Install AArch64 Toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get install gcc-aarch64-linux-gnu
- name: Version - name: Version
run: | run: |
rustup --version rustup --version
@ -69,10 +85,11 @@ jobs:
cargo clippy --version cargo clippy --version
- name: Build - name: Build
run: cargo build --all --verbose run: cargo build --all --target ${{ matrix.target }}
- name: Test - name: Test
run: cargo test --all --verbose if: matrix.native
run: cargo test --all --target ${{ matrix.target }}
- name: Clippy - name: Clippy
run: cargo clippy --all --all-targets --all-features run: cargo clippy --all --all-targets --all-features