Skip to content

Commit ff9d5eb

Browse files
authored
Run regression tests on Apple Silicon runners, only on changes to main (#2845)
Adds a new workflow "Kani CI M1" that runs the regression suite on Apple M1 runners (`macos-13-xlarge`), but only on pushes to `main`. ### Callouts * Hasn't been tested since I don't have access to the `macos-13-xlarge` runners in my fork. * Added a new workflow to avoid making the "Kani CI" workflow more complex. In particular, I first considered adding conditions to the steps, but that would result in M1 runners being invoked only to skip the job on PRs. Second, I tried adding a condition for the job itself, but it's not possible to refer to `${{ os.matrix }}` at that stage. * Similarly, I don't remove the `-xlarge` substring used for M1 runners.
1 parent 81ec454 commit ff9d5eb

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/kani-m1.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright Kani Contributors
2+
# SPDX-License-Identifier: Apache-2.0 OR MIT
3+
4+
# Run the regression job on Apple M1 only on commits to `main`
5+
name: Kani CI M1
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
11+
env:
12+
RUST_BACKTRACE: 1
13+
14+
jobs:
15+
regression:
16+
runs-on: macos-13-xlarge
17+
steps:
18+
- name: Checkout Kani
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Kani Dependencies
22+
uses: ./.github/actions/setup
23+
with:
24+
os: macos-13-xlarge
25+
26+
- name: Build Kani
27+
run: cargo build-dev
28+
29+
- name: Execute Kani regression
30+
run: ./scripts/kani-regression.sh

scripts/setup/macos-13-xlarge

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
macos

0 commit comments

Comments
 (0)