forked from you-win/spout-gd
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (52 loc) · 1.67 KB
/
Copy pathbuild.yaml
File metadata and controls
63 lines (52 loc) · 1.67 KB
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
name: Build Redot Spout GD
on:
push:
branches: [master]
tags: ["v*"]
pull_request:
workflow_dispatch:
permissions:
contents: read
env:
SCONS_CACHE: ${{ github.workspace }}/.scons_cache
jobs:
build:
name: Windows ${{ matrix.target }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
target: [template_debug, template_release]
steps:
- name: Check out source and pinned submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install SCons
run: python -m pip install scons
- name: Cache SCons output
uses: actions/cache@v4
with:
path: ${{ env.SCONS_CACHE }}
key: windows-${{ matrix.target }}-${{ hashFiles('SConstruct', 'src/**', 'godot-cpp/**', 'Spout2/**') }}
- name: Build Spout2
working-directory: Spout2
run: |
cmake -DSKIP_INSTALL_ALL=OFF -DSKIP_INSTALL_HEADERS=OFF -DSKIP_INSTALL_LIBRARIES=OFF -DSPOUT_BUILD_LIBRARY=ON --fresh .
cmake --build . --config Release --clean-first
- name: Build GDExtension
run: scons target=${{ matrix.target }} platform=windows arch=x86_64 -j2
- name: Upload native binaries
uses: actions/upload-artifact@v4
with:
name: redot-spout-gd-windows-x86_64-${{ matrix.target }}
path: |
out/spout_gd.windows.${{ matrix.target }}.dll
Spout2/Binaries/x64/SpoutLibrary.dll
addons/spout-gd/spout_gd.gdextension
LICENSE
THIRD_PARTY.md