Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test aarch64 #202

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 47 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,10 @@ jobs:
./mvnw -B -V -DdryRun=true release:perform -Darguments="-Dgpg.skip=true -DskipTests"
fi

test-jdk:
parameters:
jdk:
type: string
test-jdk-template:
docker:
- image: << parameters.jdk >>
environment:
# Neutralize the MAVEN_CONFIG env set in maven images
# https://github.com/carlossg/docker-maven/blob/master/amazoncorretto-17/Dockerfile#L20
MAVEN_CONFIG: ""
steps:
- image: dummy
steps: &test-jdk-steps
- attach_workspace:
at: .
- restore_cache:
Expand All @@ -76,6 +69,26 @@ jobs:
# 3. Compile and run tests
- run: ./mvnw -B -V clean test -pl test -Dfmt.skip=true

# amd64 / x86-64
test-jdk:
parameters:
jdk:
type: string
docker:
- image: << parameters.jdk >>
environment:
# Neutralize the MAVEN_CONFIG env set in maven images
# https://github.com/carlossg/docker-maven/blob/master/amazoncorretto-17/Dockerfile#L20
MAVEN_CONFIG: ""
steps: *test-jdk-steps

# aarch64 / arm64
test-jdk-aarch64:
machine:
image: ubuntu-2004:202101-01
resource_class: arm.medium
steps: *test-jdk-steps

jackson-it:
parallelism: 4
docker:
Expand Down Expand Up @@ -105,21 +118,41 @@ workflows:
requires: [build]
- test-jdk:
requires: [build]
name: 8 - AdoptOpenJDK
name: 8 - Adoptium
jdk: "cimg/openjdk:8.0.302"
- test-jdk:
requires: [build]
name: 11 - AdoptOpenJDK
name: 11 - Adoptium
jdk: "cimg/openjdk:11.0.12"
- test-jdk:
requires: [build]
name: 15 - AdoptOpenJDK
name: 15 - Adoptium
jdk: "cimg/openjdk:15.0.2"
- test-jdk:
requires: [build]
name: 17 - AdoptOpenJDK
name: 17 - Adoptium
jdk: "cimg/openjdk:17.0.0"

- test-jdk-aarch64:
requires: [build]
name: 11 - Adoptium - Aarch64
pre-steps:
- run: |
export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -qq openjdk-11-jdk-headless
sudo update-alternatives --auto java
sudo update-alternatives --auto javac
- test-jdk-aarch64:
requires: [build]
name: 17 - Adoptium - Aarch64
pre-steps:
- run: |
export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install -qq openjdk-17-jdk-headless
sudo update-alternatives --auto java
sudo update-alternatives --auto javac
- test-jdk:
requires: [build]
name: 8 - Amazon Corretto
Expand Down