Migrate to Bazel 8.5.0 and replace workspace with bzlmod #504
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 and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Cache bazel build results | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: bazel-cache | |
| with: | |
| path: ~/.cache/bazel | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ env.cache-name }}-main | |
| - name: Build | |
| run: bazel build //src:djinni | |
| - name: Generate examples / check clean output | |
| run: ./ci/generate.sh | |
| - name: Test | |
| run: ./ci/run-tests.sh | |
| - name: External Test | |
| working-directory: external-test | |
| run: bazel run @snap_djinni//src:djinni -- --help |