Debian Codegraph @

.cargo/vendor/av1-grain/.github/workflows/av1-grain-macos.yml

raw
1 #FIXME
2 # - valgrind cannot be installed on macos, only on linux
3 # - rust-code-analysis is not tested on macos, so no static analysis
4
5 name: av1-grain-macos
6
7 on:
8 push:
9 branches:
10 - main
11 pull_request:
12 branches:
13 - main
14
15 jobs:
16 build-test:
17 runs-on: macos-latest
18
19 steps:
20 - uses: actions/checkout@v3
21
22 - name: Install Rust stable
23 uses: actions-rs/toolchain@v1
24 with:
25 profile: minimal
26 toolchain: stable
27 override: true
28 components: rustfmt, clippy
29 - uses: Swatinem/rust-cache@v2
30
31 - name: Run rustfmt
32 uses: actions-rs/cargo@v1
33 with:
34 command: fmt
35 args: -- --check --verbose
36
37 - name: Run cargo clippy
38 uses: actions-rs/clippy-check@v1
39 with:
40 token: ${{ secrets.GITHUB_TOKEN }}
41 args: --all-targets --tests --benches -- -D warnings
42
43 - name: Build
44 run: cargo build --verbose --tests --benches
45
46 - name: Run tests
47 run: cargo test --verbose
48
49 - name: Generate docs
50 run: cargo doc --no-deps