Update name #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo fmt --check | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup `Cargo.lock` for caching | |
run: cargo generate-lockfile | |
- name: Cache cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "clippy" | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- run: cargo clippy -- -D warnings | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
z3version: ['4.8.7', '4.8.17', '4.11.2', '4.12.2', '4.12.4', '4.13.3'] | |
# Linux, Processor (CPU): 4, Memory (RAM): 16 GB, Storage (SSD): 14 GB | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup `Cargo.lock` for caching | |
run: cargo generate-lockfile | |
- name: Cache cargo | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "shared" | |
save-if: ${{ github.ref == 'refs/heads/main' }} | |
- run: cargo version && SLP_MEMORY_LIMIT_GB=16 cargo test --workspace -- --nocapture | |
# Failure | |
- run: tar -czf failing_logs.tar.bz2 logs/ | |
if: failure() | |
- uses: actions/[email protected] | |
if: failure() | |
with: | |
name: "logs_z3_v${{ matrix.z3version }}" | |
path: failing_logs.tar.bz2 | |
retention-days: 1 |