1- # This Action will build the SDK and if this succeeds, create a github release
1+ # This Action will build the SDK and if this succeeds, create a GitHub release
22name : Release Builds
33on :
44 push :
55 tags :
66 - " *"
77jobs :
8+
9+ # -------------------------------
10+ # 1. Build + bundle (Linux only)
11+ # -------------------------------
812 build :
913 runs-on : ubuntu-latest
1014 steps :
11- - uses : actions/checkout@v2
12- - name : Set up JDK 21
13- uses : actions/setup-java@v3
14- with :
15- distribution : temurin
16- java-version : 21
17- - name : Install wine
18- run : sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt install -y xorg xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic wine32:i386 wine makepkg
19- - name : Grant execute permission for gradle
20- run : chmod +x gradlew
21- - name : Build the SDK
22- run : ./gradlew buildSdk -Ptag_name=${{ github.ref_name }}
23- - name : Override Harness (custom icon)
24- run : ./gradlew overrideHarness -Ptag_name=${{ github.ref_name }}
25- - name : Build Installers
26- run : ant -Dstorepass="$NBM_SIGN_PASS" -Dpack200.enabled=false set-spec-version build-zip unset-spec-version
27- - name : Download JDKs for the installers
28- run : bash download-jdks.sh
29- working-directory : installers
30- - name : Build the installers
31- run : bash build-installers.sh ${{ github.ref_name }} headless
32- working-directory : installers
33- - name : Create Release
34- uses : softprops/action-gh-release@v1
15+ - uses : actions/checkout@v6
3516
17+ - name : Build the SDK
18+ uses : ./.github/actions/build-sdk
3619 with :
37- files : |
38- dist/jmonkeyplatform*.*
39- dist/jmonkeyengine-sdk*.*
40- dist/jMonkeyEngine-SDK*.*
41- tag_name : ${{ github.ref }}
42- name : Release ${{ github.ref }}
43- env :
44- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ tag : ${{ github.ref_name }}
21+ createBundle : true
22+
23+ - name : Prepare installers
24+ uses : ./.github/actions/prepare-installers
25+
26+ # -------------------------------
27+ # 2. Native installer packaging (matrix)
28+ # -------------------------------
29+ package :
30+ needs : build
31+
32+ strategy :
33+ matrix :
34+ os : [ ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest, macos-26-intel ]
35+
36+ runs-on : ${{ matrix.os }}
37+
38+ steps :
39+ - uses : actions/checkout@v6
40+
41+ - name : Build installers
42+ uses : ./.github/actions/build-installers
43+ with :
44+ tag : ${{ github.ref_name }}
45+ os : ${{ runner.os }}
46+ arch : ${{ runner.arch }}
47+
48+ # -------------------------------
49+ # 3. Release
50+ # -------------------------------
51+ release :
52+ needs : package
53+ runs-on : ubuntu-latest
54+
55+ steps :
56+ - uses : actions/checkout@v6
57+
58+ - name : Publish release
59+ uses : ./.github/actions/publish-release
60+ with :
61+ tag : ${{ github.ref }}
0 commit comments