This repository was archived by the owner on Jun 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
68 lines (60 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
on:
push:
branches: [main]
paths-ignore:
- "**/README.md"
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
pull_request:
branches: [main]
paths-ignore:
- "**/README.md"
- CHANGELOG.md
- CONTRIBUTING.md
- LICENSE
workflow_dispatch: # Allow manual triggering
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
bazel-version: ['8.4.2', 'latest']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Bazelisk
uses: bazelbuild/setup-bazelisk@v3
- name: Configure Bazel version
run: |
if [ "${{ matrix.bazel-version }}" != "latest" ]; then
echo "${{ matrix.bazel-version }}" > .bazelversion
fi
shell: bash
# - name: Mount Bazel cache
# uses: actions/cache@v4
# with:
# path: ~/.cache/bazel
# key: ${{ runner.os }}-bazel-${{ matrix.bazel-version }}-${{ hashFiles('MODULE.bazel', '**/*.bzl') }}
# restore-keys: |
# ${{ runner.os }}-bazel-${{ matrix.bazel-version }}-
# ${{ runner.os }}-bazel-
- name: Build go_link
run: bazelisk build //gazelle/go_link:go_link
build-summary:
name: Build Summary
runs-on: ubuntu-latest
needs: build
if: always()
steps:
- name: Check build status
run: |
if [ "${{ needs.build.result }}" != "success" ]; then
echo "Build failed!"
exit 1
fi
echo "All builds succeeded!"