-
-
Notifications
You must be signed in to change notification settings - Fork 241
85 lines (80 loc) · 2.78 KB
/
build.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: "build"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GODOT_VERSION: 3.5.2
EXPORT_NAME: Lorien
LORIEN_VERSION: v0.6.0-dev
jobs:
windows-export:
name: Windows Export
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:3.5.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
run: |
mkdir -v -p build/${EXPORT_NAME}_${LORIEN_VERSION}_Windows
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Windows Build
run: |
cd lorien
godot -v --export "Windows Desktop" ../build/${EXPORT_NAME}_${LORIEN_VERSION}_Windows/${EXPORT_NAME}_${LORIEN_VERSION}.exe
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Lorien Windows
path: build/${{ env.EXPORT_NAME }}_${{ env.LORIEN_VERSION }}_Windows
retention-days: 14
linux-export:
name: Linux Export
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:3.5.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
run: |
mkdir -v -p build/${EXPORT_NAME}_${LORIEN_VERSION}_Linux
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Linux Build
run: |
cd lorien
godot -v --export "Linux/X11" ../build/${EXPORT_NAME}_${LORIEN_VERSION}_Linux/${EXPORT_NAME}_${LORIEN_VERSION}.x86_64
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Lorien Linux
path: build/${{ env.EXPORT_NAME }}_${{ env.LORIEN_VERSION }}_Linux
retention-days: 14
mac-export:
name: Mac Export
runs-on: ubuntu-latest
container:
image: docker://barichello/godot-ci:3.5.2
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
run: |
mkdir -v -p build/${EXPORT_NAME}_${LORIEN_VERSION}_Mac
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Windows Build
run: |
cd lorien
godot -v --export "Mac OSX" ../build/${EXPORT_NAME}_${LORIEN_VERSION}_Mac/${EXPORT_NAME}_${LORIEN_VERSION}.zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Lorien Mac
path: build/${{ env.EXPORT_NAME }}_${{ env.LORIEN_VERSION }}_Mac
retention-days: 14