Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, 3.1.x ]
|
|
pull_request:
|
|
branches: [ main, 3.1.x ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: ["8", "11"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: ${{ matrix.java }}
|
|
- name: Cache local Maven repository
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
- name: Build with Maven
|
|
run: ./mvnw clean install -B -U -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
|
|
|
|
test_arm64:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: ["8"]
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up QEMU
|
|
id: qemu
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Install and Run tests
|
|
run: |
|
|
docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \
|
|
arm64v8/ubuntu:20.04 \
|
|
bash -exc 'apt-get update -y && \
|
|
apt-get install openjdk-8-jdk -y && \
|
|
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-arm64 && \
|
|
export PATH=$PATH:$JAVA_HOME/bin && \
|
|
echo $PATH && \
|
|
./mvnw clean install -B -U -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false'
|