Skip to content

Commit

Permalink
ci: fix java 7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Feb 6, 2025
1 parent fb039d0 commit fe0d09a
Showing 1 changed file with 12 additions and 26 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,36 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [8, 11]
java: [7, 8, 11]

steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Run the Maven verify phase
run: mvn verify -Dgpg.skip=true

verify-java7:
runs-on: ubuntu-22.04 # with maven 3.8 (https://github.com/actions/runner-images/blob/ubuntu24/20250105.1/images/ubuntu/Ubuntu2204-Readme.md)

strategy:
fail-fast: false
matrix:
java: [ 7 ]
- name: Install Maven 3.8.x (instead of 3.9.x)
run: |
MAVEN_VERSION=3.8.8
wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
tar xzvf apache-maven-$MAVEN_VERSION-bin.tar.gz
sudo mv apache-maven-$MAVEN_VERSION /opt/maven
sudo rm -f /usr/bin/mvn # Remove existing symbolic link if it exists
sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn # Create new symbolic link
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Run the Maven verify phase
run: mvn verify -Dgpg.skip=true

0 comments on commit fe0d09a

Please sign in to comment.