diff --git a/.github/workflows/ci-aarch64.yml b/.github/workflows/ci-aarch64.yml new file mode 100644 index 0000000..6d84196 --- /dev/null +++ b/.github/workflows/ci-aarch64.yml @@ -0,0 +1,53 @@ +name: ci-aarch64 + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +env: + CARGO_INCREMENTAL: 0 + CARGO_TERM_COLOR: always + RUSTDOCFLAGS: -Dwarnings + RUSTFLAGS: -Dwarnings + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/cache@v4 + with: + path: | + ~/.cache/gmp-mpfr-sys + key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('Cargo.toml') }} + restore-keys: | + ${{ runner.os }}-${{ secrets.CACHE_VERSION }}- + + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + profile: minimal + components: clippy, rustfmt + + - uses: Swatinem/rust-cache@v2 + + - name: Test + run: cargo test --release + + - name: Test (--no-default-features) + run: cargo test --release --no-default-features --lib --tests + + - name: Clippy + run: cargo clippy --all-targets + + - name: Check format + run: cargo fmt -- --check + + - name: Check docs + run: cargo rustdoc diff --git a/.github/workflows/build.yml b/.github/workflows/ci-x86-64.yml similarity index 99% rename from .github/workflows/build.yml rename to .github/workflows/ci-x86-64.yml index 493234b..616a7d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci-x86-64.yml @@ -1,4 +1,4 @@ -name: build +name: ci-x86-64 on: push: diff --git a/README.md b/README.md index 0c62e0c..871effd 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,6 @@ The following CPUs are supported: - **AArch64 (ARM64)** - Should be usable, but is not tested continuously. - When using the Cargo feature `gmp` (see below), target platforms are limited to the ones that are supported by the [`gmp-mpfr-sys`](https://crates.io/crates/gmp-mpfr-sys) crate. For example, MSVC is not supported. ## Cargo Features