Skip to content

Commit ed34caf

Browse files
committed
travis: only keep release build, related to graphhopper#2552
1 parent 291c030 commit ed34caf

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

.github/workflows/push-packages.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,44 @@ jobs:
3030
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
3131
restore-keys: |
3232
${{ runner.os}}-node_modules-
33-
- name: Build and publish package
33+
- name: Build and publish package ${{ matrix.java-version }}
3434
run: |
3535
mvn -B versions:set -DnewVersion=$GITHUB_SHA -DgenerateBackupPoms=false
3636
mvn -B -DskipTests -Pskip-shaded-web-jar -Pskip-tools-jar source:jar deploy
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
build-only:
40+
runs-on: ubuntu-20.04
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
java-version: [ 18 ]
45+
steps:
46+
- uses: actions/checkout@v2
47+
- uses: actions/setup-java@v2
48+
with:
49+
java-version: ${{ matrix.java-version }}
50+
distribution: temurin
51+
- name: Cache Maven artifacts
52+
uses: actions/cache@v2
53+
with:
54+
path: ~/.m2/repository
55+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
56+
restore-keys: |
57+
${{ runner.os }}-maven-
58+
- name: Cache node
59+
uses: actions/cache@v2
60+
with:
61+
path: web-bundle/node
62+
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml') }}
63+
restore-keys: |
64+
${{ runner.os}}-node-
65+
- name: Cache node_modules
66+
uses: actions/cache@v2
67+
with:
68+
path: web-bundle/node_modules
69+
key: ${{ runner.os }}-node-${{ hashFiles('**/pom.xml', '**/package.json') }}
70+
restore-keys: |
71+
${{ runner.os}}-node_modules-
72+
- name: Build ${{ matrix.java-version }}
73+
run: mvn -B clean test

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ matrix:
1313
include:
1414
- name: JDK8
1515
env: JDK='8/ga' # for backward compatibility and release
16-
- name: JDK17
17-
env: JDK='17/ga'# latest LTS
18-
- name: JDK18
19-
env: JDK='18/ga'# latest
20-
- name: JDK19-ea
21-
env: JDK='19/ea'# latest early access
2216

2317
# avoid default dependency command for maven, 'true' means 'return true' and continue
2418
install: true

0 commit comments

Comments
 (0)