-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (64 loc) · 1.91 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches:
- "main"
pull_request:
## support for merge queues
merge_group:
env:
CARGO_TERM_COLOR: always
## Incremental builds only slow things down in CI.
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full
TEST_STRICT_VERSIONS: true
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain:
- stable
- nightly
os:
- ubuntu-latest
# disabled since we aren't typically making OS-specific changes
# - macos-latest
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
solvers/
key: ${{ runner.os }}-${{matrix.toolchain}}-cargo-${{ hashFiles('**/Cargo.lock','tools/solver-versions.sh') }}
restore-keys: ${{ runner.os }}-${{matrix.toolchain}}-cargo-
- name: Download solvers
run: |
./tools/download-solvers.sh
- name: Check solver versions
run: |
./solvers/z3 --version
./solvers/cvc5 --version | head -1
./solvers/cvc4 --version | head -1
- name: Install toolchain ${{ matrix.toolchain }}
run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.toolchain }} --profile minimal
- name: CI checks
run: ./tools/ci-check.sh --ci
- name: Install license-header-checker
run: |
curl -s https://raw.githubusercontent.com/lluissm/license-header-checker/master/install.sh | bash -s -- -b ./bin
echo "$PWD/bin" >> $GITHUB_PATH
- name: Run license check
run: |
./tools/ci-license-header-check.sh