Skip to content

Switch from run_shell to run with wrapper scripts (Bazel 8 compat) #7

Switch from run_shell to run with wrapper scripts (Bazel 8 compat)

Switch from run_shell to run with wrapper scripts (Bazel 8 compat) #7

Workflow file for this run

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