-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (46 loc) · 1.26 KB
/
nightly.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
name: nightly
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
nightly:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Run sccache stat for check before
shell: bash
run: ${SCCACHE_PATH} --show-stats
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-12-01
- uses: extractions/setup-just@v1
- name: cargo build
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
rustup default nightly-2024-12-01
cargo build --release --all-targets --all-features
- name: cargo test
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
rustup default nightly-2024-12-01
just test
- name: cargo docs
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
rustup default nightly-2024-12-01
cargo doc --no-deps --all-features
- name: Run sccache stat for check after
shell: bash
run: ${SCCACHE_PATH} --show-stats