generated from nathanfranke/gdextension
-
Notifications
You must be signed in to change notification settings - Fork 134
55 lines (48 loc) · 1.5 KB
/
linux.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
name: 🐧 Linux Builds
on: [ workflow_call, workflow_dispatch ]
env:
SCONSFLAGS: verbose=yes
jobs:
build-linux:
runs-on: "ubuntu-20.04"
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- identifier: linux-debug
name: Linux Debug
target: template_debug
platform: linux
arch: x86_64
- identifier: linux-release
name: Linux Release
target: template_release
platform: linux
arch: x86_64
steps:
- name: Setup python & scons
uses: ./.github/actions/base-deps
- name: Checkout godot-cpp
uses: actions/checkout@v3
with:
submodules: recursive
- name: Compile extension
shell: sh
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' ${{ env.SCONSFLAGS }} -j2
ls -l project/addons/*/bin/
strip bin/libterrain.*
ls -l project/addons/*/bin/
- name: Copy extra files to addon
shell: sh
run: |
for addon in ${{ github.workspace }}/project/addons/*/; do
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' "$addon"
done
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: |
${{ github.workspace }}/project/