Skip to content

Commit 9a5fb72

Browse files
dfa1claude
andcommitted
ci: GitHub Actions — verify on Linux + macOS (arm/intel)
Checkout with submodule, JDK 25, Zig 0.16.0, ./mvnw verify (checkstyle + tests + javadoc gate). Each runner builds its native lib with zig and tests against it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 05d4155 commit 9a5fb72

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
name: ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
# each runner builds its own native lib via zig and tests against it:
17+
# ubuntu-latest -> linux-x86_64, macos-14 -> osx-aarch64, macos-13 -> osx-x86_64
18+
os: [ubuntu-latest, macos-14, macos-13]
19+
20+
steps:
21+
- name: Checkout (with zstd submodule)
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
26+
- name: Set up JDK 25
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: temurin
30+
java-version: '25'
31+
cache: maven
32+
33+
- name: Set up Zig
34+
uses: mlugg/setup-zig@v1
35+
with:
36+
version: 0.16.0
37+
38+
- name: Build, test and verify
39+
run: ./mvnw -B -ntp verify

0 commit comments

Comments
 (0)