build docker image with smaller cac parameters for testing #60
Workflow file for this run
This file contains hidden or 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: build | |
| on: | |
| pull_request: | |
| merge_group: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| permissions: {} | |
| jobs: | |
| crate-checks: | |
| name: Check that crates compile on their own | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 90 # cold run takes a lot of time as each crate is compiled separately | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| run: | | |
| rustup toolchain install nightly --profile minimal | |
| rustup default nightly | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | |
| with: | |
| cache-on-failure: true | |
| - name: Install cargo-hack | |
| uses: taiki-e/install-action@81ecf985428d5c2ea81dbf079bceca32bc9604ab # cargo-hack v2.62.43 | |
| with: | |
| tool: cargo-hack | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2 | |
| with: | |
| cache-on-failure: true | |
| - name: Configure sccache | |
| run: | | |
| echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" | |
| echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| with: | |
| version: "v0.10.0" # sccache version | |
| - name: Install FoundationDB client library | |
| uses: ./.github/actions/setup-foundationdb-client | |
| - name: Check crates compile | |
| run: cargo hack check | |
| env: | |
| DATABASE_URL: sqlite://./operator.db |