-
-
Notifications
You must be signed in to change notification settings - Fork 38
28 lines (26 loc) · 688 Bytes
/
macos.yml
File metadata and controls
28 lines (26 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: MacOS
on: [push, pull_request]
jobs:
build:
name: MacOS
runs-on: macos-latest
strategy:
matrix:
rust: [1.61.0, stable, nightly]
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Add more targets
run: rustup target add aarch64-apple-darwin
- name: Setup TOML
run: cp MacOS.toml Cargo.toml
- name: Check MacOS (x86_64)
run: cargo check
- name: Check MacOS (aarch64)
run: cargo check --target aarch64-apple-darwin
- name: Run tests
run: cargo test