@@ -81,13 +81,22 @@ jobs:
81
81
name : test ${{ matrix.arch }} ${{ matrix.distro }} jdk${{ matrix.java }}
82
82
strategy :
83
83
matrix :
84
- # armv6 cannot install the JDK properly via apt-get on Debian
85
- arch : [ armv7, aarch64 ]
86
- # no point adding Alpine, as we only have x86_64 binaries for it
87
- distro : [ ubuntu20.04 ]
88
- # cannot add Java 16, maven installed by apt-get is 3.6.x and does not support Java 16
89
- # use only java 11, so we don't run too many CI jobs
90
- java : [ 11 ]
84
+ include :
85
+ # ARM v7
86
+ - arch : armv7
87
+ distro : ubuntu_latest
88
+ java : 11 # apt-get maven is 3.6.x, doesn't support Java 17
89
+ # ARM 64
90
+ - arch : aarch64
91
+ distro : ubuntu_latest
92
+ java : 11 # apt-get maven is 3.6.x, doesn't support Java 17
93
+ - arch : aarch64
94
+ distro : alpine_latest
95
+ java : 11
96
+ # PPC64
97
+ - arch : ppc64le
98
+ distro : ubuntu_latest
99
+ java : 11 # apt-get maven is 3.6.x, doesn't support Java 17
91
100
runs-on : ubuntu-latest
92
101
steps :
93
102
- uses : actions/checkout@v3
@@ -107,15 +116,26 @@ jobs:
107
116
# publicly in your project's package repository, so it is vital that
108
117
# no secrets are present in the container state or logs.
109
118
install : |
110
- apt-get update -q -y
111
- apt-get install -q -y maven openjdk-${{ matrix.java }}-jdk
119
+ case "${{ matrix.distro }}" in
120
+ ubuntu*|jessie|stretch|buster|bullseye)
121
+ apt-get update -q -y
122
+ apt-get install -q -y maven openjdk-${{ matrix.java }}-jdk
123
+ ;;
124
+ alpine*)
125
+ apk update
126
+ apk add maven openjdk${{ matrix.java }}
127
+ ;;
128
+ esac
112
129
113
130
# We use the Github Action user, 1001:121, so that maven can access
114
131
# the /work directory and create target/classes
115
132
dockerRunArgs : |
116
133
--volume "${PWD}:/work"
117
134
--user 1001:121
118
135
136
+ env : |
137
+ SKIP_TEST_OSINFO: true
138
+
119
139
run : |
120
140
echo "Architecture: `uname -a`"
121
141
mvn --version
0 commit comments