35
35
DOCKER_IMAGE="$(echo "$GITHUB_REPOSITORY" | tr '[:upper:]' '[:lower:]')"
36
36
echo "docker_image=$DOCKER_IMAGE" | tee -a "$GITHUB_OUTPUT"
37
37
38
+ dependency_report :
39
+ name : " OWASP DepCheck"
40
+ runs-on : " ubuntu-latest"
41
+ needs : [ "set_variables" ]
42
+ steps :
43
+ - name : " Checkout repository"
44
+ uses : " actions/checkout@v4"
45
+ with :
46
+ persist-credentials : false
47
+ - name : " Install JDK"
48
+ uses : " actions/setup-java@v4"
49
+ with :
50
+ distribution : " corretto"
51
+ java-version : " ${{ needs.set_variables.outputs.java_version }}"
52
+ - name : " Cache Maven repository"
53
+ uses : " actions/cache@v4"
54
+ with :
55
+ path : " ${{ github.workspace }}/.ci/transient/m2-repo"
56
+ key : " ${{ runner.os }}-${{ runner.arch }}-owasp-${{ hashFiles('pom.xml') }}"
57
+ restore-keys : |
58
+ ${{ runner.os }}-${{ runner.arch }}-owasp-
59
+ - name : " Maven Build"
60
+ uses : " ./.github/actions/maven-build"
61
+ with :
62
+ BUILD_REVISION : " ${{ needs.set_variables.outputs.build_version }}"
63
+ MAVEN_JOB_ARGS : " dependency-check:check -DnvdApiKey=${{ secrets.NVD_API_KEY }}"
64
+ JVMOPT_NATIVE_ACCESS : " ALL-UNNAMED"
65
+ - name : " Archive jarfile"
66
+ uses : " actions/upload-artifact@v4"
67
+ with :
68
+ name : " dependency-check-report.html"
69
+ path : " target/dependency-check-report.html"
70
+
38
71
build_hotspot :
39
72
name : " Build (HotSpot)"
40
73
runs-on : " ubuntu-latest"
53
86
uses : " actions/cache@v4"
54
87
with :
55
88
path : " ${{ github.workspace }}/.ci/transient/m2-repo"
56
- key : " ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pom.xml') }}"
89
+ key : " ${{ runner.os }}-${{ runner.arch }}-hostpot- ${{ hashFiles('pom.xml') }}"
57
90
restore-keys : |
58
- ${{ runner.os }}-${{ runner.arch }}-
59
- ${{ runner.os }}-
91
+ ${{ runner.os }}-${{ runner.arch }}-hotspot-
60
92
- name : " Maven Build"
61
93
uses : " ./.github/actions/maven-build"
62
94
with :
@@ -97,10 +129,9 @@ jobs:
97
129
uses : " actions/cache@v4"
98
130
with :
99
131
path : " ${{ github.workspace }}/.ci/transient/m2-repo"
100
- key : " ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('pom.xml') }}"
132
+ key : " ${{ runner.os }}-${{ runner.arch }}-graal- ${{ hashFiles('pom.xml') }}"
101
133
restore-keys : |
102
- ${{ runner.os }}-${{ runner.arch }}-
103
- ${{ runner.os }}-
134
+ ${{ runner.os }}-${{ runner.arch }}-graal-
104
135
- name : " Maven Build"
105
136
uses : " ./.github/actions/maven-build"
106
137
with :
@@ -109,16 +140,21 @@ jobs:
109
140
- name : " Archive binary"
110
141
uses : " actions/upload-artifact@v4"
111
142
with :
112
- name : " mcw-bin "
143
+ name : " mcw-aot "
113
144
path : " target/mcw"
145
+ - name : " Archive build report"
146
+ uses : " actions/upload-artifact@v4"
147
+ with :
148
+ name : " mcw-aot-build-report.html"
149
+ path : " target/mcw-build-report.html"
114
150
115
151
publish_graal :
116
152
name : " Publish (GraalVM)"
117
153
needs : [ "set_variables", "build_graal" ]
118
154
uses : " ./.github/workflows/publish.yml"
119
155
with :
120
156
JAVA_VERSION : " ${{ needs.set_variables.outputs.java_version }}"
121
- ARTIFACT_NAME : " mcw-bin "
157
+ ARTIFACT_NAME : " mcw-aot "
122
158
DOCKER_REGISTRY : " ghcr.io"
123
159
DOCKER_IMAGE : " ${{ needs.set_variables.outputs.docker_image }}"
124
160
DOCKER_TARGET : " graal"
0 commit comments