Skip to content
Merged
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
Comment thread
dmorra12 marked this conversation as resolved.
- os: ubuntu-latest
- os: ubuntu-24.04-arm
- os: macos-latest
bazel_flags: --config=apple_silicon

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Install Bazel
uses: bazel-contrib/setup-bazel@0.18.0
Comment thread
dmorra12 marked this conversation as resolved.
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}-${{ matrix.os }}
# Share repository cache between workflows.
repository-cache: true

- name: Build all targets
run: |
bazel build //... \
--verbose_failures \
${{ matrix.bazel_flags }}

- name: Run tests
run: |
bazel test //... \
--verbose_failures \
--test_output=errors \
${{ matrix.bazel_flags }}

- name: Upload Bazel test logs
uses: actions/upload-artifact@v7
if: failure() # Upload artifacts only if a step failed
with:
name: bazel-test-logs
Comment thread
dmorra12 marked this conversation as resolved.
Outdated
path: bazel-testlogs
Loading