-
-
Notifications
You must be signed in to change notification settings - Fork 207
45 lines (38 loc) · 1.17 KB
/
macos.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ci-macos
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
push:
branches:
- main
paths:
- '**.rs' # only execute on changes to go files
- '**/Cargo.toml' # or dependency updates
- '.github/workflows/**' # or workflow changes
jobs:
test:
strategy:
fail-fast: false
matrix:
version:
- stable
# - nightly
name: Check ${{ matrix.version }} - x86_64-apple-darwin
runs-on: macOS-12
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- name: check build
run: cargo check --all --bins --examples --tests
- name: check release build
run: cargo check --all --bins --examples --tests --release
- name: Cargo test
timeout-minutes: 40
run: cargo test --all --all-features --no-fail-fast -- --nocapture