Skip to content

Commit e01835c

Browse files
authored
fix: arm build (#10)
* add arm profile * add GH action to verify the build
1 parent 8e8a383 commit e01835c

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build (${{ matrix.runner }})
12+
runs-on: ${{ matrix.runner }}
13+
strategy:
14+
matrix:
15+
runner:
16+
- ubuntu-24.04
17+
- ubuntu-24.04-arm
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Set up JDK 11
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: "11"
27+
distribution: temurin
28+
cache: maven
29+
30+
- name: Build with Maven
31+
run: mvn --batch-mode verify

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@
141141
</dependencies>
142142

143143
<profiles>
144+
<profile>
145+
<id>opa-linux-arm64</id>
146+
<activation>
147+
<os><name>Linux</name><arch>aarch64</arch></os>
148+
</activation>
149+
<properties><opa.classifier>linux_arm64_static</opa.classifier></properties>
150+
</profile>
144151
<profile>
145152
<id>opa-linux-amd64</id>
146153
<activation>

0 commit comments

Comments
 (0)