forked from opensuspect/opensuspect
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.92 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GODOT_VERSION: 3.5.1
EXPORT_NAME: opensus
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
export:
name: Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.5.1
steps:
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Linux Build
run: |
mkdir -v -p $GITHUB_WORKSPACE/build/linux
cd $GITHUB_WORKSPACE/src
godot -v --export "Client" $GITHUB_WORKSPACE/build/linux/$EXPORT_NAME.x86_64
- name: Upload Linux Artifact
uses: actions/upload-artifact@v1
with:
name: linux
path: build/linux
- name: macOS Build
run: |
mkdir -v -p $GITHUB_WORKSPACE/build/macos
cd $GITHUB_WORKSPACE/src
godot -v --export "macOS" $GITHUB_WORKSPACE/build/macos/$EXPORT_NAME.app
- name: Upload macOS Artifact
uses: actions/upload-artifact@v1
with:
name: macos
path: build/macos
- name: Windows Desktop Build
run: |
mkdir -v -p $GITHUB_WORKSPACE/build/windows-desktop
cd $GITHUB_WORKSPACE/src
godot -v --export "Windows Desktop" $GITHUB_WORKSPACE/build/windows-desktop/$EXPORT_NAME.exe
- name: Upload Windows Artifact
uses: actions/upload-artifact@v1
with:
name: windows-desktop
path: build/windows-desktop