Native build test #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
workflow_dispatch: | ||
jobs: | ||
# Build native executable per runner | ||
package: | ||
Check failure on line 6 in .github/workflows/native-build.yml
|
||
needs: [ maven-release ] | ||
name: 'Build with Graal on ${{ matrix.os }}' | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest, macOS-latest ] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 'Check out repository' | ||
uses: actions/checkout@v4 | ||
- name: 'Build Native Image' | ||
run: | | ||
pushd server | ||
./mvnw -ntp -B --file pom.xml -Pnative package -DskipTests | ||
popd | ||
- name: 'Create distribution' | ||
run: | | ||
pushd server | ||
./mvnw -ntp -B --file pom.xml -Pdist package -DskipTests | ||
popd | ||
- name: 'Upload build artifact' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts-${{ runner.os }}-${{ runner.arch }} | ||
path: | | ||
target/*.zip | ||
target/*.tar.gz |