@@ -2,7 +2,10 @@ name: CI
22
33on :
44 # TODO re-enable once project is set up properly
5- # push:
5+ # push:
6+ # branches:
7+ # - main
8+ # pull_request:
69 workflow_dispatch :
710
811env :
@@ -82,60 +85,43 @@ jobs:
8285 cache-on-failure : true
8386
8487 - name : Install required tools
85- uses : taiki-e/install-action@e328d9d001c908ed6a5c128f1d6881ab8525f4e3 # v2.51.3
88+ uses : taiki-e/install-action@6c6479b49816fcc0975a31af977bdc1f847c2920 # v2.52.1
8689 with :
87- tool : just,cargo-hack,cargo-minimal-versions,cargo-msrv-prep
90+ tool : just@1.40.0 ,cargo-hack@0.6.36 ,cargo-minimal-versions@0.1.30 ,cargo-msrv-prep@2.1.1
8891 env :
8992 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9093
9194 - name : Run checks using cargo-minimal-versions
9295 run : just toolchain=${{ matrix.toolchain }} check-minimal
9396
9497 build :
95- name : Build for Rust ${{ matrix.toolchain }}${{ matrix.experimental && ' (experimental)' || '' }} on ${{ matrix.os }}${{ matrix.ignore-lock && ' without Cargo.lock' || '' }}
98+ name : Build for Rust ${{ matrix.toolchain }} on ${{ matrix.os }}
9699 strategy :
97100 fail-fast : false
98101 matrix :
99- toolchain : [ 1.68.2, stable, beta, nightly ] # TODO: change 1.68.2 for your minimum supported Rust version
102+ toolchain : [ 1.68.2, stable ] # TODO: change 1.68.2 for your minimum supported Rust version
100103 os : [ ubuntu-24.04, macos-14, windows-2022 ]
101- ignore-lock : [ false, true ]
102- include :
103- - experimental : false
104- - toolchain : beta
105- experimental : true
106- - toolchain : nightly
107- experimental : true
108- exclude :
109- - toolchain : 1.68.2 # TODO: change this version to match the minimum supported Rust version specified above
110- ignore-lock : true
111104 runs-on : ${{ matrix.os }}
112- continue-on-error : ${{ matrix.experimental }}
113105 steps :
114106 - name : Checkout code
115107 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
116108
117- - name : Remove Cargo.lock
118- if : ${{ matrix.ignore-lock }}
119- run : rm Cargo.lock
120-
121109 - name : Install Rust ${{ matrix.toolchain }}
122110 uses : actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0
123111 with :
124112 toolchain : ${{ matrix.toolchain }}
125113 cache : false
126114
127115 - name : Rust Cache
128- if : ${{ !matrix.experimental }}
129116 uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
130117 with :
131- prefix-key : v3-rust
132- key : ignore-lock-${{ matrix.ignore-lock }}
118+ prefix-key : v4-rust
133119 cache-on-failure : true
134120
135121 - name : Install required tools
136- uses : taiki-e/install-action@e328d9d001c908ed6a5c128f1d6881ab8525f4e3 # v2.51.3
122+ uses : taiki-e/install-action@6c6479b49816fcc0975a31af977bdc1f847c2920 # v2.52.1
137123 with :
138- tool : just,cargo-hack
124+ tool : just@1.40.0 ,cargo-hack@0.6.36
139125 env :
140126 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
141127
@@ -159,9 +145,9 @@ jobs:
159145 cache : false
160146
161147 - name : Install required tools
162- uses : taiki-e/install-action@e328d9d001c908ed6a5c128f1d6881ab8525f4e3 # v2.51.3
148+ uses : taiki-e/install-action@6c6479b49816fcc0975a31af977bdc1f847c2920 # v2.52.1
163149 with :
164- tool : just,cargo-llvm-cov
150+ tool : just@1.40.0 ,cargo-llvm-cov@0.6.16
165151 env :
166152 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
167153
@@ -184,39 +170,22 @@ jobs:
184170 target/llvm-cov/html/
185171
186172 doc :
187- name : Rustdoc check for Rust ${{ matrix.toolchain }}${{ matrix.experimental && ' (experimental)' || '' }}
188- strategy :
189- fail-fast : false
190- matrix :
191- toolchain : [ stable, nightly ]
192- include :
193- - experimental : false
194- - toolchain : nightly
195- experimental : true
173+ name : Rustdoc check
196174 runs-on : ubuntu-24.04
197- continue-on-error : ${{ matrix.experimental }}
198175 steps :
199176 - name : Checkout code
200177 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
201178
202- - name : Install Rust ${{ matrix.toolchain }}
179+ - name : Install Rust nightly
203180 uses : actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0
204181 with :
205- toolchain : ${{ matrix.toolchain }}
182+ toolchain : nightly
206183 cache : false
207184
208- - name : Rust Cache
209- if : ${{ !matrix.experimental }}
210- uses : Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
211- with :
212- prefix-key : v2-rust
213- cache-targets : false
214- cache-on-failure : true
215-
216185 - name : Install just
217- uses : taiki-e/install-action@e328d9d001c908ed6a5c128f1d6881ab8525f4e3 # v2.51.3
186+ uses : taiki-e/install-action@6c6479b49816fcc0975a31af977bdc1f847c2920 # v2.52.1
218187 with :
219- tool : just
188+ tool : just@1.40.0
220189 env :
221190 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
222191
0 commit comments