Update dependency ubuntu to v24 #117
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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| name: CI | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| rust: [stable, beta, nightly] | |
| features: [ | |
| #"--features=lambda --no-default-features", | |
| ""] | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --allow-downgrades --no-install-recommends pkg-config libssl-dev | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: ${{ matrix.rust }} | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: Check formatting | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: -- --check | |
| - name: Build and test | |
| uses: actions-rs/cargo@v1 | |
| env: | |
| RUST_BACKTRACE: 1 | |
| with: | |
| command: test | |
| args: ${{ matrix.features }} -- --nocapture | |
| - name: Check HTTP response | |
| if: ${{ matrix.features == '' }} | |
| run: ./test.sh | |
| bazel: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Mount bazel cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/bazel | |
| key: ${{ runner.os }}-bazel-${{ hashFiles('bazel/crates.bzl') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bazel- | |
| - uses: asdf-vm/actions/setup@v4 | |
| - run: | | |
| asdf install | |
| - name: Bazel build | |
| run: bazel build //:dawn | |
| - name: Bazel test | |
| run: bazel test //:dawn_test |