Skip to content

Commit

Permalink
CI on AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
unageek committed Jul 29, 2024
1 parent 1765b6e commit a66d903
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci-aarch64.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: ci-x86-64

on:
push:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a66d903

Please sign in to comment.