You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+12-18Lines changed: 12 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -11,30 +11,32 @@ jobs:
11
11
runs-on: ${{ matrix.os }}
12
12
strategy:
13
13
matrix:
14
-
os: [ubuntu-latest, macOS-latest, windows-latest]
14
+
os: [ubuntu-latest, macos-latest, windows-latest]
15
+
env:
16
+
CARGO_INCREMENTAL: 0
15
17
steps:
16
18
- uses: actions/checkout@v6
17
-
- uses: dtolnay/rust-toolchain@stable
18
19
- run: cargo check
19
20
20
21
test:
21
22
name: cargo test
22
23
runs-on: ${{ matrix.os }}
23
24
strategy:
24
25
matrix:
25
-
os: [ubuntu-latest, macOS-latest, windows-latest]
26
+
os: [ubuntu-latest, macos-latest, windows-latest]
27
+
env:
28
+
CARGO_INCREMENTAL: 0
26
29
steps:
27
30
- uses: actions/checkout@v6
28
-
- uses: dtolnay/rust-toolchain@stable
29
31
- run: cargo test --all
30
32
31
33
fmt:
32
34
name: cargo fmt --all -- --check
33
35
runs-on: ubuntu-latest
36
+
env:
37
+
CARGO_INCREMENTAL: 0
34
38
steps:
35
39
- uses: actions/checkout@v6
36
-
- uses: dtolnay/rust-toolchain@stable
37
-
- run: rustup component add rustfmt
38
40
- run: cargo fmt --all -- --check
39
41
40
42
coverage:
@@ -47,30 +49,22 @@ jobs:
47
49
- { os: ubuntu-latest , features: unix }
48
50
- { os: macos-latest , features: macos }
49
51
- { os: windows-latest , features: windows }
52
+
env:
53
+
CARGO_INCREMENTAL: 0
50
54
steps:
51
55
- uses: actions/checkout@v6
52
56
- name: Initialize workflow variables
53
57
id: vars
54
58
shell: bash
55
59
run: |
60
+
## Use nightly features
61
+
echo "RUSTC_BOOTSTRAP=1" >> $GITHUB_OUTPUT
56
62
## VARs setup
57
63
outputs() { step_id="vars"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
58
-
# toolchain
59
-
TOOLCHAIN="nightly" ## default to "nightly" toolchain (required for certain required unstable compiler flags) ## !maint: refactor when stable channel has needed support
60
-
# * specify gnu-type TOOLCHAIN for windows; `grcov` requires gnu-style code coverage data files
61
-
case ${{ matrix.job.os }} in windows-*) TOOLCHAIN="$TOOLCHAIN-x86_64-pc-windows-gnu" ;; esac;
62
-
# * use requested TOOLCHAIN if specified
63
-
if [ -n "${{ matrix.job.toolchain }}" ]; then TOOLCHAIN="${{ matrix.job.toolchain }}" ; fi
64
-
outputs TOOLCHAIN
65
64
# target-specific options
66
65
# * CODECOV_FLAGS
67
66
CODECOV_FLAGS=$( echo "${{ matrix.job.os }}" | sed 's/[^[:alnum:]]/_/g' )
0 commit comments