Skip to content

Commit e7cd8bb

Browse files
Merge branch 'main' into update-toolchain-2025-02-26
2 parents bc9a857 + b93e591 commit e7cd8bb

File tree

12 files changed

+53
-161
lines changed

12 files changed

+53
-161
lines changed

.github/workflows/bench.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
perf-benchcomp:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Save push event HEAD and HEAD~ to environment variables
2121
if: ${{ github.event_name == 'push' }}
@@ -46,13 +46,13 @@ jobs:
4646
- name: Set up Kani Dependencies (old variant)
4747
uses: ./old/.github/actions/setup
4848
with:
49-
os: ubuntu-20.04
49+
os: ubuntu-24.04
5050
kani_dir: old
5151

5252
- name: Set up Kani Dependencies (new variant)
5353
uses: ./new/.github/actions/setup
5454
with:
55-
os: ubuntu-20.04
55+
os: ubuntu-24.04
5656
kani_dir: new
5757

5858
- name: Copy benchmarks from new to old

.github/workflows/cbmc-latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [macos-13, ubuntu-20.04, ubuntu-22.04]
22+
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
2323
steps:
2424
- name: Checkout Kani under "kani"
2525
uses: actions/checkout@v4
@@ -61,7 +61,7 @@ jobs:
6161
run: ./scripts/kani-regression.sh
6262

6363
perf:
64-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-24.04
6565
steps:
6666
- name: Checkout Kani under "kani"
6767
uses: actions/checkout@v4
@@ -71,7 +71,7 @@ jobs:
7171
- name: Setup Kani Dependencies
7272
uses: ./kani/.github/actions/setup
7373
with:
74-
os: ubuntu-20.04
74+
os: ubuntu-24.04
7575
kani_dir: 'kani'
7676

7777
- name: Build Kani using release mode

.github/workflows/deny.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- uses: actions/checkout@v4
2121
with:
2222
submodules: recursive
23+
- name: Install rustup
24+
run: ./scripts/setup/install_rustup.sh
2325
- uses: EmbarkStudios/cargo-deny-action@v2
2426
with:
2527
arguments: --all-features --workspace

.github/workflows/format-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
./scripts/run-autopep8.sh
3232
3333
clippy-check:
34-
runs-on: ubuntu-20.04
34+
runs-on: ubuntu-24.04
3535
steps:
3636
- name: Checkout Kani
3737
uses: actions/checkout@v4
3838

3939
- name: Setup Kani Dependencies
4040
uses: ./.github/actions/setup
4141
with:
42-
os: ubuntu-20.04
42+
os: ubuntu-24.04
4343

4444
- name: 'Install jq for parsing.'
4545
run: |

.github/workflows/kani.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
os: [macos-13, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-14]
21+
os: [macos-13, ubuntu-22.04, ubuntu-24.04, macos-14]
2222
steps:
2323
- name: Checkout Kani
2424
uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232
run: ./scripts/kani-regression.sh
3333

3434
benchcomp-tests:
35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-24.04
3636
steps:
3737
- name: Checkout Kani
3838
uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Kani Dependencies
4747
uses: ./.github/actions/setup
4848
with:
49-
os: ubuntu-20.04
49+
os: ubuntu-24.04
5050

5151
- name: Build Kani using release mode
5252
run: cargo build-dev -- --release
@@ -55,23 +55,23 @@ jobs:
5555
run: pushd tools/benchcomp && PATH=$(realpath ../../scripts):$PATH test/run
5656

5757
perf:
58-
runs-on: ubuntu-20.04
58+
runs-on: ubuntu-24.04
5959
steps:
6060
- name: Checkout Kani
6161
uses: actions/checkout@v4
6262

6363
- name: Setup Kani Dependencies
6464
uses: ./.github/actions/setup
6565
with:
66-
os: ubuntu-20.04
66+
os: ubuntu-24.04
6767

6868
- name: Execute Kani performance tests
6969
run: ./scripts/kani-perf.sh
7070
env:
7171
RUST_TEST_THREADS: 1
7272

7373
documentation:
74-
runs-on: ubuntu-20.04
74+
runs-on: ubuntu-24.04
7575
permissions:
7676
contents: write
7777
steps:

.github/workflows/release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
build_bundle_linux:
7272
name: BuildBundle-Linux
73-
runs-on: ubuntu-20.04
73+
runs-on: ubuntu-22.04
7474
outputs:
7575
version: ${{ steps.bundle.outputs.version }}
7676
bundle: ${{ steps.bundle.outputs.bundle }}
@@ -83,7 +83,7 @@ jobs:
8383
- name: Setup Kani Dependencies
8484
uses: ./.github/actions/setup
8585
with:
86-
os: ubuntu-20.04
86+
os: ubuntu-22.04
8787

8888
- name: Build bundle
8989
id: bundle
@@ -97,14 +97,11 @@ jobs:
9797
needs: [build_bundle_macos, build_bundle_linux]
9898
strategy:
9999
matrix:
100-
os: [macos-13, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
100+
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
101101
include:
102102
- os: macos-13
103103
rust_target: x86_64-apple-darwin
104104
prev_job: ${{ needs.build_bundle_macos.outputs }}
105-
- os: ubuntu-20.04
106-
rust_target: x86_64-unknown-linux-gnu
107-
prev_job: ${{ needs.build_bundle_linux.outputs }}
108105
- os: ubuntu-22.04
109106
rust_target: x86_64-unknown-linux-gnu
110107
prev_job: ${{ needs.build_bundle_linux.outputs }}
@@ -200,7 +197,7 @@ jobs:
200197
needs: [build_bundle_macos, build_bundle_linux]
201198
strategy:
202199
matrix:
203-
os: [macos-13, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
200+
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
204201
include:
205202
# Stores the output of the previous job conditional to the OS
206203
- prev_job: ${{ needs.build_bundle_linux.outputs }}
@@ -244,7 +241,7 @@ jobs:
244241
kani_release:
245242
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/kani-') }}
246243
name: Release
247-
runs-on: ubuntu-20.04
244+
runs-on: ubuntu-24.04
248245
needs: [build_bundle_macos, build_bundle_macos_aarch64, build_bundle_linux, test_bundle]
249246
outputs:
250247
version: ${{ steps.versioning.outputs.version }}
@@ -301,12 +298,12 @@ jobs:
301298
package_docker:
302299
name: Package Docker
303300
needs: kani_release
304-
runs-on: ubuntu-20.04
301+
runs-on: ubuntu-24.04
305302
permissions:
306303
contents: write
307304
packages: write
308305
env:
309-
os: ubuntu-20.04
306+
os: ubuntu-24.04
310307
target: x86_64-unknown-linux-gnu
311308
steps:
312309
- name: Checkout code
@@ -315,7 +312,7 @@ jobs:
315312
- name: Setup Kani Dependencies
316313
uses: ./.github/actions/setup
317314
with:
318-
os: ubuntu-20.04
315+
os: ubuntu-24.04
319316

320317
- name: 'Build release bundle'
321318
run: |
@@ -339,7 +336,7 @@ jobs:
339336
uses: docker/build-push-action@v6
340337
with:
341338
context: .
342-
file: scripts/ci/Dockerfile.bundle-release-20-04
339+
file: scripts/ci/Dockerfile.bundle-release-24-04
343340
push: true
344341
github-token: ${{ secrets.GITHUB_TOKEN }}
345342
tags: |

.github/workflows/slow-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
strategy:
2020
matrix:
21-
os: [macos-13, ubuntu-20.04, ubuntu-22.04]
21+
os: [macos-13, ubuntu-22.04, ubuntu-24.04]
2222
steps:
2323
- name: Checkout Kani
2424
uses: actions/checkout@v4

Cargo.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ dependencies = [
150150

151151
[[package]]
152152
name = "bitflags"
153-
version = "2.8.0"
153+
version = "2.9.0"
154154
source = "registry+https://github.com/rust-lang/crates.io-index"
155-
checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
155+
checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
156156

157157
[[package]]
158158
name = "brownstone"
@@ -216,9 +216,9 @@ dependencies = [
216216

217217
[[package]]
218218
name = "cargo_metadata"
219-
version = "0.19.1"
219+
version = "0.19.2"
220220
source = "registry+https://github.com/rust-lang/crates.io-index"
221-
checksum = "8769706aad5d996120af43197bf46ef6ad0fda35216b4505f926a365a232d924"
221+
checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"
222222
dependencies = [
223223
"camino",
224224
"cargo-platform",
@@ -230,9 +230,9 @@ dependencies = [
230230

231231
[[package]]
232232
name = "cc"
233-
version = "1.2.15"
233+
version = "1.2.16"
234234
source = "registry+https://github.com/rust-lang/crates.io-index"
235-
checksum = "c736e259eea577f443d5c86c304f9f4ae0295c43f3ba05c21f1d66b5f06001af"
235+
checksum = "be714c154be609ec7f5dad223a33bf1482fff90472de28f7362806e6d4832b8c"
236236
dependencies = [
237237
"shlex",
238238
]
@@ -282,19 +282,19 @@ dependencies = [
282282

283283
[[package]]
284284
name = "clap"
285-
version = "4.5.30"
285+
version = "4.5.31"
286286
source = "registry+https://github.com/rust-lang/crates.io-index"
287-
checksum = "92b7b18d71fad5313a1e320fa9897994228ce274b60faa4d694fe0ea89cd9e6d"
287+
checksum = "027bb0d98429ae334a8698531da7077bdf906419543a35a55c2cb1b66437d767"
288288
dependencies = [
289289
"clap_builder",
290290
"clap_derive",
291291
]
292292

293293
[[package]]
294294
name = "clap_builder"
295-
version = "4.5.30"
295+
version = "4.5.31"
296296
source = "registry+https://github.com/rust-lang/crates.io-index"
297-
checksum = "a35db2071778a7344791a4fb4f95308b5673d219dee3ae348b86642574ecc90c"
297+
checksum = "5589e0cba072e0f3d23791efac0fd8627b49c829c196a492e88168e6a669d863"
298298
dependencies = [
299299
"anstream",
300300
"anstyle",
@@ -375,9 +375,9 @@ dependencies = [
375375

376376
[[package]]
377377
name = "console"
378-
version = "0.15.10"
378+
version = "0.15.11"
379379
source = "registry+https://github.com/rust-lang/crates.io-index"
380-
checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b"
380+
checksum = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8"
381381
dependencies = [
382382
"encode_unicode",
383383
"libc",

scripts/setup/install_rustup.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
set -eux
66

77
# Install Rust toolchain
8-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
9-
&& source ~/.cargo/env
8+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
9+
# Don't use .cargo/env as that won't prepend .cargo/bin to the PATH when it's
10+
# already somewhere in there
11+
export PATH="$HOME/.cargo/bin:$PATH"
12+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
13+
pushd ${SCRIPT_DIR}/../../
14+
rustup toolchain install
15+
popd

0 commit comments

Comments
 (0)