-
Notifications
You must be signed in to change notification settings - Fork 31
84 lines (80 loc) · 2.34 KB
/
ci.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
name: CI for GDCEF
on:
workflow_dispatch:
branches:
- master
- dev-godot-4
push:
branches:
- master
- dev-godot-4
pull_request:
branches:
- master
- dev-godot-4
jobs:
#############################################################################
### Linux
#############################################################################
build_linux:
name: Build on Linux
runs-on: ubuntu-20.04
steps:
- name: Checkout GDCEF
uses: actions/checkout@v3
with:
submodules: true
- name: Install system packages
run: |
sudo apt-get update
cd addons/gdcef
python3 -m pip install -r requirements.txt
- name: Compile GDCEF
run: |
cd addons/gdcef
python3 build.py
- name: Check build
run: |
ls build/gdcefSubProcess build/libgdcef.so build/libcef.so
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gdcef-artifacts-godot_4-linux_x86_64
path: build/
#############################################################################
### Windows
#############################################################################
build_windows:
name: Build on Windows
runs-on: windows-2022
steps:
# Add path for finding cl.exe
# FIXME: I dunno why Godot editor and godot-cpp can find cl.exe while our
# godot native modules cannot find it without this extra path
- uses: ilammy/msvc-dev-cmd@v1.10.0
- name: Checkout GDCEF
uses: actions/checkout@v4
with:
submodules: true
- name: Install system packages
shell: powershell
run: |
cd addons/gdcef
python3 -m pip install -r requirements.txt
- name: Compile GDCEF
shell: powershell
run: |
cd addons/gdcef
python3 build.py
- name: Check build
run: |
cd build
Test-Path -Path \a\gdcef\gdcef\build\gdcefSubProcess.exe
Test-Path -Path \a\gdcef\gdcef\build\libgdcef.dll
Test-Path -Path \a\gdcef\gdcef\build\libcef.dll
cd -
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gdcef-artifacts-godot_4-windows_x86_64
path: build/