-
-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (50 loc) · 1.33 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
name: CI
on:
merge_group:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
cargo_checks:
- name: Enforce default cargo fmt
subcommand: fmt -- --check
- name: Clippy
subcommand: clippy
- name: Test
subcommand: test --verbose
- name: Build
subcommand: build --release --all-features --verbose
steps:
- uses: actions/checkout@v4
- name: Stable with rustfmt and clippy
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: cargo check - ${{ matrix.cargo_checks.name }}
run: cargo ${{ matrix.cargo_checks.subcommand }}
#update-project-stuff:
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# uses: ./.github/workflows/update-repo-stuff.yml
# secrets: inherit
#done:
# name: Done
# if: github.event_name == 'push' && github.ref == 'refs/heads/staging'
# needs:
# - ci
# - update-project-stuff
# runs-on: ubuntu-latest
# steps:
# - name: Done
# run: echo "Done!"