-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 901 Bytes
/
ci.yml
File metadata and controls
37 lines (35 loc) · 901 Bytes
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
on:
pull_request:
push:
permissions: {}
jobs:
fmt:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- run: rustup component add clippy
- run: cargo clippy -- -D warnings
test:
runs-on: ubuntu-latest
permissions:
contents: read
env:
# see tests/thrust-pcsat-wrapper
COAR_IMAGE: ghcr.io/hiroshi-unno/coar@sha256:73144ed27a02b163d1a71b41b58f3b5414f12e91326015600cfdca64ff19f011
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup-z3
- run: docker pull "$COAR_IMAGE"
- run: rustup show
- uses: Swatinem/rust-cache@v2
- run: cargo test