Skip to content

Commit 948f6e4

Browse files
author
Rob Tjalma
committed
Adjusted Github Actions
Signed-off-by: Rob Tjalma <[email protected]>
1 parent 2b83608 commit 948f6e4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/build-project.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Install graalvm
18-
uses: DeLaGuardo/setup-[email protected]
17+
- name: Set up JDK 1.11
18+
uses: actions/setup-[email protected]
1919
with:
20-
graalvm: '21.2.0'
21-
java: 'java11'
22-
- name: Install native-image
23-
run: gu install native-image
20+
distribution: 'zulu'
21+
java-version: '11'
2422
- name: Create custom Maven Settings.xml
2523
uses: whelk-io/maven-settings-xml-action@v20
2624
with:
2725
output_file: custom_maven_settings.xml
2826
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
29-
- name: Build with Maven using the 'Native' profile
30-
run: ./mvnw -s custom_maven_settings.xml -B clean verify -Pnative
27+
- name: Build with Maven
28+
run: ./mvnw -s custom_maven_settings.xml -B clean verify

.github/workflows/release-project.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424
shell: bash
2525
# Extra the tagname form the git reference, value of GITHUB_REF will be something like refs/tags/<tag_name>.
2626
run: echo "##[set-output name=tagname;]$(echo ${GITHUB_REF##*/})"
27-
- name: Set up JDK 11
28-
uses: actions/setup-[email protected]
27+
- name: Install graalvm
28+
uses: DeLaGuardo/setup-[email protected]
2929
with:
30-
distribution: 'zulu'
31-
java-version: '11'
30+
graalvm: '21.2.0'
31+
java: 'java11'
32+
- name: Install native-image
33+
run: gu install native-image
3234
- name: Create custom Maven Settings.xml
3335
uses: whelk-io/maven-settings-xml-action@v20
3436
with:
@@ -39,6 +41,6 @@ jobs:
3941
env:
4042
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4143
- name: Deploy with Maven to GitHub Packages and Docker Hub
42-
run: ./mvnw -B -s custom_maven_settings.xml -Prelease clean deploy
44+
run: ./mvnw -B -s custom_maven_settings.xml -Prelease,native clean deploy -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
4345
env:
4446
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)