Windows branch build #81
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
name: Windows branch build | |
on: | |
workflow_run: | |
workflows: ["CI build"] | |
types: | |
- completed | |
env: | |
JAVA_HOME: D:\a\sdkman-ui\sdkman-ui\jdk | |
GRAALVM_HOME: D:\a\sdkman-ui\sdkman-ui\jdk | |
gluon_version: 22.1.0.1-Final | |
jobs: | |
build: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Visual Studio shell | |
uses: egor-tensin/vs-shell@v1 | |
- uses: robinraju/[email protected] | |
with: | |
repository: "gluonhq/graal" | |
tag: "gluon-${{ env.gluon_version }}" | |
fileName: "*java17-windows-gluon-*.zip" | |
- name: Extract JDK | |
run: | | |
unzip graalvm-svm-java17-windows-gluon-${{ env.gluon_version }}.zip | |
Rename-Item -path "graalvm-svm-java17-windows-gluon-${{ env.gluon_version }}" jdk | |
- name: Make staging directory | |
run: mkdir staging | |
- name: Cache local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
save-always: true | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: ./mvnw -B clean install -DskipTests | |
- name: Build native | |
run: ./mvnw gluonfx:build -f sdkman-ui | |
- name: Assamble zip | |
run: | | |
./mvnw org.apache.maven.plugins:maven-assembly-plugin:single@assemble-windows -f sdkman-ui | |
- name: Upload binaries to Latest release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: sdkman-ui/target/sdkman-ui-windows_x86_64-latest_build.zip | |
asset_name: sdkman-ui-windows_x86_64-latest_build.zip | |
tag: latest_build |