update workflow #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Build and Test 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 maven && java -version && mvn -B package && java -jar target/headlong-cli-1.1-SNAPSHOT.jar -version" |