-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (74 loc) · 2.13 KB
/
nightly-check.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
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Nightly Check
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # daily
env:
RUST_BACKTRACE: 1
RUSTFLAGS: '--codegen=debuginfo=0 --deny=warnings'
RUSTDOCFLAGS: '--deny=warnings'
CARGO_TERM_COLOR: always
jobs:
check-ubuntu:
strategy:
fail-fast: false
matrix:
feature: ['--all-features', '']
profile: ['--release', '']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: install cargo-about
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- run: sudo apt install libfontconfig1-dev
- run: cargo +nightly check --workspace ${{ matrix.feature }} ${{ matrix.profile }}
check-windows:
needs: [check-ubuntu]
strategy:
fail-fast: false
matrix:
feature: ['--all-features', '']
profile: ['--release', '']
runs-on: windows-latest
env:
CC: 'clang-cl'
CXX: 'clang-cl'
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: install cargo-about
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- run: cargo +nightly check --workspace ${{ matrix.feature }} ${{ matrix.profile }}
check-macos:
needs: [check-ubuntu]
strategy:
fail-fast: false
matrix:
feature: ['--all-features', '']
profile: ['--release', '']
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: install cargo-about
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- run: cargo +nightly check --workspace ${{ matrix.feature }} ${{ matrix.profile }}
doc:
runs-on: ubuntu-latest
needs: [check-ubuntu]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: install cargo-about
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-about
- run: sudo apt install libfontconfig1-dev
- run: cargo +nightly doc --all-features --no-deps