mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 22:04:47 +07:00
Okay, that was a good try. Bye graal native-image
This commit is contained in:
parent
b52f68f6f0
commit
2871fa855d
41
.github/workflows/buildAndDeploy.yml
vendored
41
.github/workflows/buildAndDeploy.yml
vendored
@ -101,42 +101,6 @@ jobs:
|
||||
name: UncivServer
|
||||
path: server/build/libs/UncivServer.jar
|
||||
|
||||
graalvm-build:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
needs: build-jar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'graalvm'
|
||||
components: 'native-image'
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Download JAR
|
||||
uses: actions/download-artifact@v4
|
||||
# See 'Upload JAR' step in 'build' job
|
||||
with:
|
||||
name: UncivJar
|
||||
|
||||
- name: Build native image
|
||||
run: native-image -jar Unciv.jar unciv
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: NativeImage-${{ matrix.os }}
|
||||
path: unciv*
|
||||
|
||||
android-build:
|
||||
continue-on-error: true
|
||||
runs-on: ubuntu-latest
|
||||
@ -274,7 +238,7 @@ jobs:
|
||||
./butler push Unciv-Windows64.zip yairm210/unciv:Windows64 --userversion ${{ github.ref_name }}
|
||||
|
||||
upload-github-release-and-post-to-discord:
|
||||
needs: [get-release-body, android-build, packr-build, graalvm-build]
|
||||
needs: [get-release-body, android-build, packr-build]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@ -290,9 +254,6 @@ jobs:
|
||||
mv UncivDeploymentZips/Unciv-Linux64.zip deploy
|
||||
mv UncivAPK/Unciv-signed.apk deploy
|
||||
mv UncivServer/UncivServer.jar deploy
|
||||
mv NativeImage-ubuntu-latest/unciv* deploy/native-image-linux
|
||||
mv NativeImage-macos-latest/unciv* deploy/native-image-macos
|
||||
mv NativeImage-windows-latest/unciv* deploy/native-image-windows
|
||||
|
||||
- name: Check if this is a real release or a test version, for Github release
|
||||
id: check-version-tag
|
||||
|
Loading…
Reference in New Issue
Block a user