Skip to content

Commit 1204332

Browse files
Potentially build Opencast during build
1 parent 47ea16d commit 1204332

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/m2.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,39 @@ jobs:
1515
- name: Set up a compatible Java version
1616
uses: actions/setup-java@v4
1717
with:
18-
distribution: zulu
19-
java-version: 11
18+
distribution: temurin
19+
java-version: 17
2020
cache: maven
2121

22+
- name: See if we have the Opencast artifacts
23+
id: exists
24+
run: |
25+
if [ -d ~/.m2/repository/org/opencastproject/base/17.0 ]
26+
then
27+
echo exists=true >> "$GITHUB_OUTPUT"
28+
else
29+
echo exists=false >> "$GITHUB_OUTPUT"
30+
fi
31+
32+
- name: Potentially check out Opencast
33+
if: steps.exists.outputs.exists == 'false'
34+
uses: actions/checkout@v4
35+
with:
36+
repository: opencast/opencast
37+
ref: "17.0"
38+
path: opencast
39+
40+
- name: Potentially build Opencast
41+
if: steps.exists.outputs.exists == 'false'
42+
run: |
43+
cd opencast
44+
./mvnw clean install -Pnone \
45+
--batch-mode \
46+
-Dmaven.test.skip \
47+
-DskipTests \
48+
-Dcheckstyle.skip \
49+
-Dmdep.analyze.skip
50+
2251
- name: Potentially restore node from cache
2352
uses: actions/cache@v3
2453
with:

0 commit comments

Comments
 (0)