2022-05-30 20:34:04 +03:00
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
name: Nix M1 cargo test
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: 1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
nix-m1:
|
|
|
|
name: nix-m1
|
|
|
|
runs-on: [self-hosted, macOS, ARM64]
|
|
|
|
timeout-minutes: 90
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
clean: "true"
|
2022-05-31 15:53:12 +03:00
|
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
|
|
with:
|
|
|
|
xcode-version: '13.3' # this uses swift 5.6 which matches with the installed MacOSX12.3.sdk
|
2022-05-30 20:34:04 +03:00
|
|
|
|
|
|
|
- name: setup dependencies with nix, build and test
|
|
|
|
run: nix develop -c cargo test --locked --release --no-run
|