Skip to content

Commit

Permalink
Release aarch64-unknown-linux-gnu binaries (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored May 28, 2021
1 parent 0fbf302 commit c40b4e6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
45 changes: 31 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,24 @@ jobs:

strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-2016
target:
- x86_64-unknown-linux-musl
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
- aarch64-unknown-linux-gnu
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
- os: macos-latest
target: x86_64-apple-darwin
- os: windows-2016
target: x86_64-pc-windows-msvc
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
native: true
- target: x86_64-apple-darwin
os: macos-latest
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}}

Expand All @@ -51,28 +58,38 @@ jobs:
~/.cargo/registry
~/.cargo/git
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
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
components: clippy, rustfmt
components: clippy
override: true

- name: Install AArch64 Toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get install gcc-aarch64-linux-gnu

- name: Version
run: |
rustup --version
cargo --version
cargo clippy --version
- name: Build
run: cargo build --all --verbose
run: cargo build --all --target ${{ matrix.target }}

- name: Test
run: cargo test --all --verbose
if: matrix.native
run: cargo test --all --target ${{ matrix.target }}

- name: Clippy
run: cargo clippy --all --all-targets --all-features
Expand Down

0 comments on commit c40b4e6

Please sign in to comment.