GitHub Actions: Fix "The following actions uses node12 which is depre… #20
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 EXE | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Visual Studio shell | |
uses: egor-tensin/vs-shell@v2 | |
- name: Setup GraalVM environment | |
uses: gluonhq/setup-graalvm@master | |
# set GITHUB_TOKEN to avoid exceeding GitHub's API rate limit | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# GraalVM version. Default: latest | |
graalvm: '22.1.0.1-Final' | |
# Java version. Since GraalVM 22, either java11 or java17, before GraalVM 22, empty. Default: java17 | |
jdk: 'java17' | |
- run: java -version | |
- name: build modules | |
run: mvn -P fast install | |
- name: Make staging directory | |
run: mkdir staging | |
- name: gluonfx plugin build | |
run: mvn -f ./deploy/graalvm/pom.xml clean package gluonfx:build | |
env: | |
GRAALVM_HOME: ${{ env.JAVA_HOME }} | |
- name: Copy native client to staging | |
run: cp -r ./deploy/graalvm/target/gluonfx/x86_64-windows/*.exe staging | |
- name: Upload | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: windows_exe | |
path: staging |