Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
swissbuechi committed Nov 10, 2023
1 parent 17288f4 commit 43fa71f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-image-native.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker image native
name: Build Docker image native

on:
workflow_dispatch:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker image
name: Build Docker image

on:
workflow_dispatch:
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/deploy-native-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Binary Artifacts native
name: Build binary artifacts

on:
workflow_dispatch:
Expand All @@ -7,39 +7,35 @@ on:

jobs:
build:
name: graalvm ${{ matrix.graalvm_version }} on ${{ matrix.os }}
name: Build binary artifacts for ${{ asset_name }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
graalvm_version: latest
asset_name: linux-amd64
executable-suffix: ''
- os: macos-latest
graalvm_version: latest
asset_name: macos-amd64
executable-suffix: ''
- os: windows-latest
graalvm_version: latest
asset_name: windows-amd64
executable-suffix: '.exe'

steps:
- name: Checkout repository
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- uses: graalvm/setup-graalvm@v1
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: ${{ matrix.graalvm_version }}
java-version: '17'
components: 'native-image'
version: latest
java-version: 17
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build Native Binary
run: mvn -Pnative package -DskipTests=true
- name: Build native binary
run: mvn -Pnative native:compile -DskipTests=true

- name: Upload archive
uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<finalName>app</finalName>
<image>
<builder>paketobuildpacks/builder-jammy-tiny:latest</builder>
</image>
Expand Down

0 comments on commit 43fa71f

Please sign in to comment.