Skip to content

Commit 369b798

Browse files
committed
Copy GitHub Actions config from 'jwe' branch
* Removes JDK 10
1 parent a95b699 commit 369b798

File tree

1 file changed

+21
-30
lines changed

1 file changed

+21
-30
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@ on:
77
- master
88

99
jobs:
10+
oracle:
11+
strategy:
12+
matrix:
13+
java: [ '17' ]
14+
runs-on: 'ubuntu-latest'
15+
env:
16+
MVN_CMD: ./mvnw --no-transfer-progress -B
17+
name: jdk-${{ matrix.java }}-oracle
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK
21+
uses: oracle-actions/setup-java@v1
22+
with:
23+
release: ${{ matrix.java }}
24+
- name: Build
25+
# run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
26+
# to sign artifacts, since we don't want to mess with storing signing credentials in CI:
27+
run: ${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
28+
1029
temurin:
1130
strategy:
1231
matrix:
@@ -32,7 +51,7 @@ jobs:
3251
zulu:
3352
strategy:
3453
matrix:
35-
java: [ '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18' ]
54+
java: [ '7', '8', '9', '11', '12', '13', '14', '15', '16', '17', '18' ]
3655
runs-on: 'ubuntu-latest'
3756
env:
3857
MVN_CMD: ./mvnw --no-transfer-progress -B
@@ -54,34 +73,6 @@ jobs:
5473
if [ "$JDK_MAJOR_VERSION" == "7" ]; then export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"; fi
5574
${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
5675
57-
jdk-7-oracle:
58-
runs-on: 'ubuntu-latest'
59-
env:
60-
MVN_CMD: ./mvnw --no-transfer-progress -B
61-
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"
62-
steps:
63-
- uses: actions/checkout@v3
64-
- run: |
65-
download_url="https://238dj3282as03k369.s3-us-west-1.amazonaws.com/jdk-7u80-linux-x64.tar.gz"
66-
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
67-
- name: Set up JDK
68-
uses: actions/setup-java@v3
69-
with:
70-
distribution: 'jdkfile'
71-
jdkFile: ${{ runner.temp }}/java_package.tar.gz
72-
java-version: '7'
73-
architecture: x64
74-
cache: 'maven'
75-
- name: "Download and install JCE Unlimited Strength Crypto policies for Oracle JDK 7"
76-
run: |
77-
curl -q -L -C - https://238dj3282as03k369.s3-us-west-1.amazonaws.com/UnlimitedJCEPolicyJDK7.zip -o $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
78-
unzip -oj -d "$JAVA_HOME/jre/lib/security" $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip \*/\*.jar
79-
rm $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
80-
- name: Build
81-
# run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
82-
# to sign artifacts, since we don't want to mess with storing signing credentials in CI:
83-
run: ${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
84-
8576
code-coverage:
8677
# (commented out for now - see the comments in 'Wait to start' below for why. Keeping this here as a placeholder
8778
# as it may be better to use instead of an artificial delay once we no longer need to build on JDK 7):
@@ -116,4 +107,4 @@ jobs:
116107
${{env.MVN_CMD}} -pl . clover:clover clover:check coveralls:report \
117108
-DrepoToken="${{ secrets.GITHUB_TOKEN }}" \
118109
-DserviceName=github \
119-
-DserviceBuildNumber="${{ env.GITHUB_RUN_ID }}"
110+
-DserviceBuildNumber="${{ env.GITHUB_RUN_ID }}"

0 commit comments

Comments
 (0)