-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb6a378
commit d67556b
Showing
3 changed files
with
84 additions
and
14 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
JDK_VERSION: | ||
type: string | ||
description: "JDK version to use for build" | ||
required: true | ||
BUILD_IMAGE: | ||
type: string | ||
description: "Build image" | ||
required: true | ||
BUILD_REVISION: | ||
type: string | ||
description: "Build revision" | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
container: "ghcr.io/mangadex-pub/jdk-maven:${{ inputs.JDK_VERSION }}-graal" | ||
steps: | ||
- name: "Checkout repository" | ||
uses: "actions/checkout@v4" | ||
- name: "Cache local Maven repository" | ||
uses: "actions/cache@v4" | ||
with: | ||
path: "~/.m2/repository" | ||
key: "${{ runner.os }}-graal-${{ inputs.JDK_VERSION }}-${{ hashFiles('pom.xml') }}" | ||
restore-keys: | | ||
${{ runner.os }}-graal-${{ inputs.JDK_VERSION }}- | ||
- name: "Build and test" | ||
run: | | ||
set -euo pipefail | ||
mvn -Pnative -B -e -fae --show-version -Drevision="${{ inputs.BUILD_REVISION }}" -DskipTests package | ||
- name: "Archive executable" | ||
uses: "actions/upload-artifact@v4" | ||
with: | ||
name: "mcw-glibc" | ||
path: "target/mcw" |
24 changes: 13 additions & 11 deletions
24
.github/workflows/build-hotspot.yml → .github/workflows/hotspot.yml
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