Switch from run_shell to run with wrapper scripts (Bazel 8 compat) #7
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] | |
| jobs: | |
| verify-rules: | |
| name: Verify rules load | |
| runs-on: ubuntu-latest | |
| env: | |
| USE_BAZEL_VERSION: "8.0.0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install bazelisk | |
| run: | | |
| sudo curl -fsSL https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -o /usr/local/bin/bazel | |
| sudo chmod +x /usr/local/bin/bazel | |
| - name: Query lean rules | |
| run: bazel query '//lean/...' | |
| - name: Query aeneas rules | |
| run: bazel query '//aeneas/...' | |
| build: | |
| name: Build example (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| env: | |
| USE_BAZEL_VERSION: "8.0.0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install bazelisk | |
| run: | | |
| if [ "$(uname)" = "Darwin" ]; then | |
| sudo curl -fsSL https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-darwin-arm64 -o /usr/local/bin/bazel | |
| else | |
| sudo curl -fsSL https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -o /usr/local/bin/bazel | |
| fi | |
| sudo chmod +x /usr/local/bin/bazel | |
| - name: Build hello_lean example | |
| working-directory: examples/hello_lean | |
| run: bazel build //:hello | |
| - name: Test hello_lean example | |
| working-directory: examples/hello_lean | |
| run: bazel test //:hello_test |