Migrate Docker from Alpine to Debian with multi-arch builds and cross-compilation #11
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache cargo registry & target | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Install Rust toolchain | |
| run: | | |
| rustup toolchain install 1.91.1 | |
| rustup default 1.91.1 | |
| rustup component add clippy rustfmt | |
| - name: Show rustc & cargo versions | |
| run: | | |
| rustc --version | |
| cargo --version | |
| - name: Build (release) | |
| run: cargo build --locked --release | |
| - name: Run tests | |
| run: cargo test --locked --all -- --nocapture |