This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (99 loc) · 3.2 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: CI Build
on: [push, pull_request]
#platform: [windows, x11, android, uwp, javascript, web, osx, iphone]
jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: python -m pip install scons
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
- name: Echo Versions
run: |
python --version
scons --version
msbuild -version
- name: Cache Godot-CPP
id: cache-godot-cpp
uses: actions/cache@v2
with:
path: godot-cpp
key: windows-godot-cpp
- name: Build Godot-CPP
if: steps.cache-godot-cpp.outputs.cache-hit != 'true'
run: scons platform=windows generate_bindings=yes -j2
working-directory: ./godot-cpp
- name: Build Plugin
run: scons platform=windows -j2
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: windows-dll
path: addons/gdfastnoise/bin/win64/libfastnoise.dll
build_linux:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get install -y build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm
- name: Echo Versions
run: |
python3 --version
scons --version
- name: Cache Godot-CPP
id: cache-godot-cpp
uses: actions/cache@v2
with:
path: godot-cpp
key: linux-godot-cpp
- name: Build Godot-CPP
if: steps.cache-godot-cpp.outputs.cache-hit != 'true'
run: scons platform=linux generate_bindings=yes -j2
working-directory: ./godot-cpp
- name: Build Plugin
run: scons platform=linux -j2
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: linux-dll
path: addons/gdfastnoise/bin/x11/libfastnoise.so
build_osx:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: brew install scons yasm
- name: Echo Versions
run: |
python --version
scons --version
- name: Cache Godot-CPP
id: cache-godot-cpp
uses: actions/cache@v2
with:
path: godot-cpp
key: osx-godot-cpp
- name: Build Godot-CPP
if: steps.cache-godot-cpp.outputs.cache-hit != 'true'
run: scons platform=osx generate_bindings=yes -j2
working-directory: ./godot-cpp
- name: Build Plugin
run: scons platform=osx -j2
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: macos-dll
path: addons/gdfastnoise/bin/osx/libfastnoise.dylib