Skip to content

Commit 6405617

Browse files
authored
Improve CI times (#1579)
1 parent 499e35f commit 6405617

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

.github/workflows/kani.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Copyright Kani Contributors
22
# SPDX-License-Identifier: Apache-2.0 OR MIT
33
name: Kani CI
4-
on: [push, pull_request]
4+
on:
5+
pull_request:
6+
push:
7+
# Not just any push, as that includes tags.
8+
# We don't want to re-trigger this workflow when tagging an existing commit.
9+
branches:
10+
- main
11+
12+
env:
13+
RUST_BACKTRACE: 1
514

615
jobs:
716
regression:
@@ -19,9 +28,7 @@ jobs:
1928
os: ${{ matrix.os }}
2029

2130
- name: Build Kani
22-
run: |
23-
export RUST_BACKTRACE=1
24-
cargo build --workspace
31+
run: cargo build --workspace
2532

2633
- name: Execute Kani regression
2734
run: ./scripts/kani-regression.sh
@@ -38,9 +45,7 @@ jobs:
3845
os: ubuntu-20.04
3946

4047
- name: Build Kani
41-
run: |
42-
export RUST_BACKTRACE=1
43-
cargo build --workspace
48+
run: cargo build --workspace
4449

4550
- name: Execute Kani performance tests
4651
run: ./scripts/kani-perf.sh
@@ -59,9 +64,7 @@ jobs:
5964
os: ubuntu-20.04
6065

6166
- name: Build Kani
62-
run: |
63-
export RUST_BACKTRACE=1
64-
cargo build --workspace
67+
run: cargo build --workspace
6568

6669
- name: Install book runner dependencies
6770
run: ./scripts/setup/install_bookrunner_deps.sh

scripts/std-lib-regression.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ then
1313
WRAPPER="env time -v"
1414
elif [[ $PLATFORM == "Darwin i386" ]]
1515
then
16+
# Temporarily disabled (in CI) to keeps CI times down
17+
# See https://github.com/model-checking/kani/issues/1578
18+
exit 0
19+
1620
TARGET="x86_64-apple-darwin"
1721
# mac 'time' doesn't have -v
1822
WRAPPER=""

0 commit comments

Comments
 (0)