-
Notifications
You must be signed in to change notification settings - Fork 8
64 lines (58 loc) · 2.29 KB
/
presubmit.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
56
57
58
59
60
61
62
63
64
name: presubmit
on: [push, pull_request, workflow_call, workflow_dispatch]
env:
# Without this, tracy-client won't build because the github runners don't have
# TSCs. We don't care since we're not actually testing tracy functionality but
# we still want to test with --all-features.
TRACY_NO_INVARIANT_CHECK: 1
jobs:
test:
name: cargo test --all-features
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1.1.0
- run: sudo apt-get install libwayland-dev libxkbcommon-dev
- run: cargo test --all-features
miri:
name: cargo +nightly miri test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1.1.0
with:
components: miri
channel: nightly
- run: sudo apt-get install libwayland-dev libxkbcommon-dev
- run: cargo +nightly miri test
rustfmt:
name: cargo +nightly fmt -- --check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1.1.0
with:
components: rustfmt
channel: nightly
- run: cargo +nightly fmt -- --check
cranky:
name: cargo +nightly cranky --all-targets -- -D warnings
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1.1.0
with:
components: clippy
bins: [email protected]
channel: nightly
- run: sudo apt-get install libwayland-dev libxkbcommon-dev
- run: cargo +nightly cranky --all-targets -- -D warnings
deny:
name: cargo deny --all-features check licenses
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: moonrepo/setup-rust@b8edcc56aab474d90c7cf0bb8beeaf8334c15e9f # v1.1.0
with:
bins: cargo-deny
- run: cargo deny --all-features check licenses