-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (43 loc) · 1.3 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
# Controls when the workflow will run
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Build (Maven)
run: |
echo $HOME
echo $MAVEN_OPTS
java -version
echo "1. Install parent-pom and local libs"
cd parent-pom
mvn -Dassembly.skipAssembly -Djarsigner.skip=true clean install
cd ..
mvn process-resources
echo "2. Build"
mvn clean install -Djarsigner.skip=true -DskipTests=true -Dmaven.javadoc.skip=false -B -V
echo "3. Test"
mvn test -Djava.util.logging.config.file=./src/test/resources/logging.properties -Djarsigner.skip=true -B
echo "4. Make archive"
cd target
tar cvfz ../oitools-bin.tar.gz oitools-*.jar
# TODO: publish apidocs on github pages
echo "That's All, folks !"
- name: Upload
uses: actions/upload-artifact@v4
with:
name: oitools-bin
path: oitools-bin.tar.gz
retention-days: 7
overwrite: true