ci: fix missing aarch64 build (#738)

This commit is contained in:
Clement Tsang 2022-05-25 17:06:38 -04:00 committed by GitHub
parent d03231c2e7
commit 42909dba35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 5 deletions

View file

@ -3,6 +3,7 @@
# CI pipeline based on: # CI pipeline based on:
# - https://github.com/heim-rs/heim/blob/master/.github/workflows/ci.yml # - https://github.com/heim-rs/heim/blob/master/.github/workflows/ci.yml
# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml # - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml
# - https://www.reillywood.com/blog/rust-faster-ci/
# #
# CI pipeline should do: # CI pipeline should do:
# - cargo fmt on supported platforms # - cargo fmt on supported platforms
@ -38,7 +39,7 @@ jobs:
} }
- { - {
os: "ubuntu-latest", os: "ubuntu-latest",
target: "armv7-unknown-linux-gnueabihf", target: "aarch64-unknown-linux-gnu",
cross: true, cross: true,
} }
- { os: "macOS-latest", target: "x86_64-apple-darwin", cross: false } - { os: "macOS-latest", target: "x86_64-apple-darwin", cross: false }
@ -74,6 +75,7 @@ jobs:
toolchain: stable toolchain: stable
override: true override: true
components: rustfmt, clippy components: rustfmt, clippy
target: ${{ matrix.triple.target }}
- name: Enable Rust cache - name: Enable Rust cache
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
@ -85,19 +87,33 @@ jobs:
- name: Build tests - name: Build tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: cargo test --no-run --locked ${{ matrix.features }} uses: actions-rs/cargo@v1
with:
command: test
args: --no-run --locked ${{ matrix.features }}
use-cross: ${{ matrix.triple.cross }}
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: Run tests - name: Run tests
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: cargo test --no-fail-fast ${{ matrix.features }} -- --nocapture --quiet uses: actions-rs/cargo@v1
with:
command: test
args: --no-fail-fast ${{ matrix.features }} -- --nocapture --quiet
use-cross: ${{ matrix.triple.cross }}
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: Run clippy - name: Run clippy
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
run: cargo clippy ${{ matrix.features }} --all-targets --workspace -- -D warnings uses: actions-rs/cargo@v1
with:
command: clippy
args: ${{ matrix.features }} --all-targets --workspace -- -D warnings
use-cross: ${{ matrix.triple.cross }}
env:
RUST_BACKTRACE: full
# Run cargo check on all other platforms # Run cargo check on all other platforms
other_check: other_check:

View file

@ -27,7 +27,7 @@
- [Installation](#installation) - [Installation](#installation)
- [Cargo](#cargo) - [Cargo](#cargo)
- [Arch Linux](#arch-linux) - [Arch Linux](#arch-linux)
- [Debian/Ubuntu](#debianubuntu) - [Debian/Ubuntu (x86-64)](#debianubuntu-x86-64)
- [Snap](#snap) - [Snap](#snap)
- [Fedora/CentOS](#fedoracentos) - [Fedora/CentOS](#fedoracentos)
- [Gentoo](#gentoo) - [Gentoo](#gentoo)