Skip to content

update workflow

update workflow #7

Workflow file for this run

name: Java CI Maven aarch64
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
run: |
sudo apt-get update
sudo apt-get install -y qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build in ARM64 container
run: |
docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace arm64v8/ubuntu:latest \
/bin/bash -c "apt-get update && apt-get install -y openjdk-11-jdk && java -version"
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
architecture: aarch64
- name: Build with Maven
run: |
java -version
mvn -B package --file pom.xml
java -jar target/headlong-cli-1.1-SNAPSHOT.jar -version