Skip to content

Commit 09eaa5b

Browse files
committed
chore: Improve arm64 linux build to run on native ubuntu
1 parent 25eeb72 commit 09eaa5b

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
build_linux_arm64:
5757
name: Building Linux arm64 for dochia ${{ github.event.inputs.releaseversion }}
5858
needs: release
59-
runs-on: ubuntu-latest
59+
runs-on: ubuntu-24.04-arm
6060
steps:
6161
- name: Checkout Code
6262
uses: actions/checkout@v4
@@ -71,18 +71,10 @@ jobs:
7171
distribution: 'graalvm'
7272
github-token: ${{ secrets.GITHUB_TOKEN }}
7373

74-
- name: Set up QEMU
75-
uses: docker/setup-qemu-action@v2
76-
with:
77-
platforms: arm64
78-
79-
- name: Set up Docker Buildx
80-
uses: docker/setup-buildx-action@v2
81-
8274
- name: Build and run dochia
8375
run: |
8476
./mvnw -B clean --file pom.xml
85-
./mvnw clean package -Pnative -Plicense-scan -Dquarkus.native.remote-container-build=true -DskipTests=true -Dquarkus.native.builder-image=quay.io/quarkus/ubi-quarkus-mandrel-builder-image:25.0.0.1-Final-java25-arm64
77+
./mvnw clean package -Pnative -Plicense-scan -DskipTests=true
8678
8779
- name: Tar files for Linux arm64
8880
run: |
@@ -179,7 +171,7 @@ jobs:
179171
180172
- name: Determine OS Name
181173
id: determine_os
182-
run: echo "RUNNER_OS=${{ matrix.os }}" | sed -e 's/-[^-]*$//' -e 's/ubuntu/linux/' >> $GITHUB_ENV
174+
run: echo "RUNNER_OS=${{ matrix.os }}" | sed 's/=\([^-]*\).*/=\1/' | sed 's/ubuntu/linux/' >> $GITHUB_ENV
183175

184176
- name: Build and run dochia
185177
run: |

0 commit comments

Comments
 (0)