Skip to content

Commit

Permalink
updated docker.yaml to have name instead of just docker as the job, a…
Browse files Browse the repository at this point in the history
…nd also added the linux.yaml for testing
  • Loading branch information
Bioblaze committed Oct 23, 2024
1 parent 8cad312 commit 9e2e03e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
docker:
name: Building ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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."

0 comments on commit 9e2e03e

Please sign in to comment.