mirror of https://github.com/jwtk/jjwt.git
Copy GitHub Actions config from 'jwe' branch
* Removes JDK 10
This commit is contained in:
parent
a95b699bae
commit
369b798d39
|
@ -7,6 +7,25 @@ on:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
oracle:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [ '17' ]
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
env:
|
||||||
|
MVN_CMD: ./mvnw --no-transfer-progress -B
|
||||||
|
name: jdk-${{ matrix.java }}-oracle
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: oracle-actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
release: ${{ matrix.java }}
|
||||||
|
- name: Build
|
||||||
|
# run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
|
||||||
|
# to sign artifacts, since we don't want to mess with storing signing credentials in CI:
|
||||||
|
run: ${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
|
||||||
|
|
||||||
temurin:
|
temurin:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -32,7 +51,7 @@ jobs:
|
||||||
zulu:
|
zulu:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java: [ '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18' ]
|
java: [ '7', '8', '9', '11', '12', '13', '14', '15', '16', '17', '18' ]
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
env:
|
env:
|
||||||
MVN_CMD: ./mvnw --no-transfer-progress -B
|
MVN_CMD: ./mvnw --no-transfer-progress -B
|
||||||
|
@ -54,34 +73,6 @@ jobs:
|
||||||
if [ "$JDK_MAJOR_VERSION" == "7" ]; then export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"; fi
|
if [ "$JDK_MAJOR_VERSION" == "7" ]; then export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m"; fi
|
||||||
${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
|
${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
|
||||||
|
|
||||||
jdk-7-oracle:
|
|
||||||
runs-on: 'ubuntu-latest'
|
|
||||||
env:
|
|
||||||
MVN_CMD: ./mvnw --no-transfer-progress -B
|
|
||||||
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Xmx512m -XX:MaxPermSize=128m"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- run: |
|
|
||||||
download_url="https://238dj3282as03k369.s3-us-west-1.amazonaws.com/jdk-7u80-linux-x64.tar.gz"
|
|
||||||
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'jdkfile'
|
|
||||||
jdkFile: ${{ runner.temp }}/java_package.tar.gz
|
|
||||||
java-version: '7'
|
|
||||||
architecture: x64
|
|
||||||
cache: 'maven'
|
|
||||||
- name: "Download and install JCE Unlimited Strength Crypto policies for Oracle JDK 7"
|
|
||||||
run: |
|
|
||||||
curl -q -L -C - https://238dj3282as03k369.s3-us-west-1.amazonaws.com/UnlimitedJCEPolicyJDK7.zip -o $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
|
|
||||||
unzip -oj -d "$JAVA_HOME/jre/lib/security" $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip \*/\*.jar
|
|
||||||
rm $RUNNER_TEMP/UnlimitedJCEPolicyJDK7.zip
|
|
||||||
- name: Build
|
|
||||||
# run a full build, just as we would for a release (i.e. the `ossrh` profile), but don't use gpg
|
|
||||||
# to sign artifacts, since we don't want to mess with storing signing credentials in CI:
|
|
||||||
run: ${{env.MVN_CMD}} verify -Possrh -Dgpg.skip=true
|
|
||||||
|
|
||||||
code-coverage:
|
code-coverage:
|
||||||
# (commented out for now - see the comments in 'Wait to start' below for why. Keeping this here as a placeholder
|
# (commented out for now - see the comments in 'Wait to start' below for why. Keeping this here as a placeholder
|
||||||
# as it may be better to use instead of an artificial delay once we no longer need to build on JDK 7):
|
# as it may be better to use instead of an artificial delay once we no longer need to build on JDK 7):
|
||||||
|
|
Loading…
Reference in New Issue