Skip to content

Commit

Permalink
improve bazel github ci (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig authored Dec 26, 2024
1 parent fb0e5bd commit 3a302b5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
cmake-build-debug-coverage
cmake-build-debug
cmake-build-release
25 changes: 21 additions & 4 deletions .github/workflows/ubuntu-bazel.yml → .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ubuntu 22.04 Bazel
name: Bazel

on:
pull_request:
Expand All @@ -15,21 +15,38 @@ on:

permissions:
contents: read
actions: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ubuntu-bazel:
runs-on: ubuntu-22.04
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build & Test
run: bazel test //...
ubuntu:
strategy:
fail-fast: false
matrix:
shared: [ON, OFF]
cxx: [g++-12, clang++-14]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: bazelbuild/setup-bazelisk@v3
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build & Test
run: bazel test //...
env:
Expand Down
Empty file removed WORKSPACE
Empty file.

0 comments on commit 3a302b5

Please sign in to comment.