mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-04 22:27:55 +03:00
64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
on:
|
|
workflow_call:
|
|
|
|
name: Nix apple silicon cargo test
|
|
|
|
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@v4
|
|
|
|
# These started to accumulate quickly since #5990, not sure why
|
|
- name: Clean up old nix shells
|
|
run: rm -rf /private/tmp/nix-shell.*
|
|
|
|
- run: zig version
|
|
|
|
- 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: nix develop -c cargo clippy --workspace --tests --release -- --deny warnings
|
|
|
|
- name: test building default.nix
|
|
run: nix-build
|
|
|
|
# for skipped tests: see issue 6274
|
|
- name: execute tests with --release
|
|
run: nix develop -c cargo test --locked --release -- --skip cli_run::inspect_gui --skip cli_run::hello_gui
|
|
|
|
- name: roc test all builtins
|
|
run: nix develop -c ./ci/roc_test_builtins.sh
|
|
|
|
- name: make a libapp.so for the next step
|
|
run: nix develop -c cargo run -- gen-stub-lib examples/platform-switching/rocLovesRust.roc
|
|
|
|
- name: check that the platform`s produced dylib is loadable
|
|
run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked
|
|
|
|
- name: test aarch64 dev backend
|
|
run: nix develop -c cargo nextest-gen-dev --locked --release --no-fail-fast
|
|
|
|
# we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target
|
|
- name: execute llvm wasm tests with --release
|
|
run: nix develop -c cargo test-gen-llvm-wasm --locked --release
|
|
|
|
- name: set env var and test website build script
|
|
run: |
|
|
nix develop -c bash www/build.sh
|
|
|
|
- name: wasm repl tests
|
|
run: nix develop -c crates/repl_test/test_wasm.sh
|
|
|
|
- name: test building wasm repl
|
|
run: nix develop -c ./ci/www-repl.sh
|