mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 18:08:55 +03:00
37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
on: [pull_request]
|
|
|
|
name: Nix apple silicon cargo test
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
jobs:
|
|
nix-apple-silicon:
|
|
name: nix-apple-silicon
|
|
runs-on: [self-hosted, macOS, ARM64]
|
|
timeout-minutes: 90
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
clean: "true"
|
|
|
|
- name: check formatting with rustfmt
|
|
run: nix develop -c cargo fmt --all -- --check
|
|
|
|
- name: check code style with clippy
|
|
run: nix develop -c cargo clippy --workspace --tests -- --deny warnings
|
|
|
|
- name: check code style with clippy --release
|
|
run: cargo clippy --workspace --tests --release -- --deny warnings
|
|
|
|
- name: execute tests with --release
|
|
run: nix develop -c cargo test --locked --release
|
|
|
|
# we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-platform
|
|
- name: execute llvm wasm tests with --release
|
|
run: nix develop -c cargo test-gen-llvm-wasm --locked --release
|