-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (55 loc) · 1.75 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Package
on:
push:
branches: [ master ]
jobs:
package:
strategy:
matrix:
include:
- name: Windows
os: windows-latest
profile: desktop
path: x86_64-windows
exe: j3.exe
- name: Linux
os: ubuntu-latest
profile: desktop
path: x86_64-linux
exe: j3
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Add msbuild to PATH (Windows)
if: runner.os == 'Windows'
uses: microsoft/[email protected]
- name: Visual Studio shell (Windows)
if: runner.os == 'Windows'
uses: egor-tensin/vs-shell@v1
- name: Install dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install libasound2-dev libavcodec-dev libavformat-dev libavutil-dev libgl-dev libgtk-3-dev libpango1.0-dev libxtst-dev
- name: Setup Gluon's GraalVM
uses: gluonhq/setup-graalvm@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- name: Gluon License
# uses: gluonhq/gluon-build-license@v1
# with:
# gluon-license: ${{ secrets.GLUON_LICENSE }}
- name: Gluon Build and Package
run: mvn -P${{ matrix.profile }} gluonfx:build gluonfx:package
- name: Create distribution
run: |
mkdir staging
mkdir staging/J3
cp target/gluonfx/${{ matrix.path }}/${{ matrix.exe }} staging/J3
cp -r data/ staging/J3/data
cp -r animations staging/J3/animations
- name: Upload
uses: actions/upload-artifact@v4
with:
name: J3-${{ matrix.name }}
path: staging