-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (54 loc) · 2.18 KB
/
linux.yaml
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
name: Build and Deploy
on:
repository_dispatch:
types: [deploy_linux]
workflow_call:
env:
GODOT_SDK_LINUX_X86_64: /root/x86_64-godot-linux-gnu_sdk-buildroot
GODOT_SDK_LINUX_X86_32: /root/i686-godot-linux-gnu_sdk-buildroot
GODOT_SDK_LINUX_ARM64: /root/aarch64-godot-linux-gnu_sdk-buildroot
GODOT_SDK_LINUX_ARM32: /root/arm-godot-linux-gnueabihf_sdk-buildroot
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes d3d12=yes "angle_libs=${{github.workspace}}/"
SCONS_CACHE_MSVC_CONFIG: true
jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: bioblaze/blazium-linux:latest
name: Setting up Linux SDKs and Building for Linux
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
repository: blazium-engine/blazium
ref: ${{ github.event.client_payload.branch }}
# Step to set up the environment (similar to Dockerfile ENV and exports)
- name: Setup environment variables
run: |
export SCONS="scons -j$(nproc) verbose=yes warnings=no progress=no"
export OPTIONS="debug_symbols=no use_static_cpp=no"
export TERM=xterm
export DISPLAY=:0
export PATH="${GODOT_SDK_LINUX_X86_64}/bin:${PATH}"
# Step to build the project and Mono glue
- name: Build Project and Generate Mono Glue
run: |
set -e
echo "Building and generating Mono glue..."
dotnet --info
# Build Blazium with Mono module enabled
${SCONS} platform=linuxbsd ${OPTIONS} target=editor module_mono_enabled=yes
# Generate Mono glue
rm -rf /root/mono-glue/*
bin/blazium.linuxbsd.editor.x86_64.mono --headless --generate-mono-glue /root/mono-glue
echo "Mono glue generated successfully"
# Step to upload the generated Mono glue as an artifact
- name: Upload Mono Glue as an Artifact
uses: actions/upload-artifact@v3
with:
name: mono-glue
path: /root/mono-glue
# Additional build steps if needed
- name: Finalize build process
run: |
echo "Build process completed successfully."