File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+ schedule :
9+ - cron : ' 0 0 * * *'
10+
11+ jobs :
12+ build-maven :
13+ name : Build Maven
14+
15+ runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ jdk : [8, 11, 17, 21]
19+ steps :
20+ - uses : actions/checkout@v3
21+ - name : Set up JDK ${{ matrix.jdk }}
22+ uses : actions/setup-java@v3
23+ with :
24+ java-version : ${{ matrix.jdk }}
25+ distribution : " semeru"
26+ cache : maven
27+ - name : Build with Maven
28+ run : mvn --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} package
29+ - run : |
30+ mkdir staging
31+ cp target/*.war staging
32+ cp target/*.zip staging
33+ - uses : actions/upload-artifact@v4
34+ with :
35+ name : cics-java-liberty-restapp (Maven, Java ${{ matrix.jdk }})
36+ path : staging
37+
38+ build-gradle :
39+ name : Build Gradle
40+
41+ runs-on : ubuntu-latest
42+ strategy :
43+ matrix :
44+ jdk : [8, 11, 17, 21]
45+ steps :
46+ - uses : actions/checkout@v3
47+ - name : Set up JDK ${{ matrix.jdk }}
48+ uses : actions/setup-java@v4
49+ with :
50+ java-version : ${{ matrix.jdk }}
51+ distribution : ' semeru'
52+ - uses : gradle/actions/setup-gradle@v3
53+ with :
54+ gradle-version : 8.5
55+ - name : Build with Gradle
56+ run : gradle build -Pjava_version=${{ matrix.jdk }}
You can’t perform that action at this time.
0 commit comments