Added Linux AArch64 builds and tests #223
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
linux_x86_64: | |
name: Linux x86-64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup toolchain install stable --profile minimal --no-self-update | |
- name: Enable Rust Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Release Build | |
run: cargo build --release --all | |
- name: Execute Tests | |
run: cargo test --release --all | |
- name: Run Clippy | |
run: cargo clippy --release --all --all-targets --all-features --locked -- -D warnings | |
- name: Check Formatting | |
run: cargo fmt --all -- --check | |
- name: Check Docs | |
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --package e57 | |
linux_aarch64: | |
name: Linux AArch64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup toolchain install stable --profile minimal --no-self-update | |
- name: Install Cargo Binary Install | |
run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash | |
- name: Install Cargo Cross | |
run: cargo binstall cross --no-confirm | |
- name: Enable Rust Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Release Build | |
run: cross build --release --all --target aarch64-unknown-linux-gnu | |
- name: Execute Tests | |
run: cross test --release --all --target aarch64-unknown-linux-gnu | |
windows_x86_64: | |
name: Windows x86-64 | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup toolchain install stable --profile minimal --no-self-update | |
- name: Enable Rust Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Release Build | |
run: cargo build --release --all | |
- name: Execute Tests | |
run: cargo test --release --all | |
mac_x86_64: | |
name: MacOS x86-64 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup toolchain install stable --profile minimal --no-self-update | |
- name: Install x64 target | |
run: rustup target add x86_64-apple-darwin | |
- name: Enable Rust Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Release Build | |
run: cargo build --release --all --target x86_64-apple-darwin | |
- name: Execute Tests | |
run: cargo test --release --all --target x86_64-apple-darwin | |
mac_aarch64: | |
name: MacOS AArch64 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup toolchain install stable --profile minimal --no-self-update | |
- name: Enable Rust Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Release Build | |
run: cargo build --release --all --target aarch64-apple-darwin | |
- name: Execute Tests | |
run: cargo test --release --all --target aarch64-apple-darwin |