Skip to content

Commit cabb0e1

Browse files
committed
GHA: add a bazel build CI job
Ensure that we keep the bazel builds usable with our changes. Add a simple CI check for the bazel based builds.
1 parent 294ef2c commit cabb0e1

File tree

4 files changed

+20
-56
lines changed

4 files changed

+20
-56
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ jobs:
7575
path: |
7676
${{ github.workspace }}/BinaryCache/ds2/Release/ds2.exe
7777
78+
bazel:
79+
runs-on: ubuntu-latest
80+
name: Bazel Build Check
81+
steps:
82+
- uses: actions/checkout@v4
83+
with:
84+
path: ${{ github.workspace }}/SourceCache/ds2
85+
- run: |
86+
sudo apt-get update
87+
sudo apt-get install -qq --no-install-recommends bison flex ninja-build
88+
- run: |
89+
bazel build //...
90+
working-directory: ${{ github.workspace }}/SourceCache/ds2
7891
7992
mingw:
8093
needs: [windows_tools]

BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ config_setting(
139139
"@platforms//os:macos": "darwin",
140140
"@platforms//os:windows": "windows",
141141
}) + " -I DebugServer2/Architecture/RegisterLayout.h -h -o $@ -f $<",
142-
exec_tools = ["//Tools/RegsGen2:regsgen2"],
142+
tools = ["//Tools/RegsGen2:regsgen2"],
143143
)
144144
for arch in ("ARM", "ARM64", "RISCV32", "RISCV64", "RISCV128", "X86", "X86_64")
145145
]
@@ -156,7 +156,7 @@ config_setting(
156156
"@platforms//os:macos": "darwin",
157157
"@platforms//os:windows": "windows",
158158
}) + " -I DebugServer2/Architecture/{}/RegistersDescriptors.h -c -o $@ -f $<".format(arch),
159-
exec_tools = ["//Tools/RegsGen2:regsgen2"],
159+
tools = ["//Tools/RegsGen2:regsgen2"],
160160
)
161161
for arch in ("ARM", "ARM64", "RISCV32", "RISCV64", "RISCV128", "X86", "X86_64")
162162
]

MODULE.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
2+
bazel_dep(name = "rules_m4", version = "0.2.4")
3+
bazel_dep(name = "rules_bison", version = "0.3.1")
4+
bazel_dep(name = "rules_flex", version = "0.3.1")
5+
bazel_dep(name = "platforms", version = "0.0.11")

WORKSPACE

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)