mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
Create ci_build.yml
This commit is contained in:
parent
864d38258f
commit
0ac6bdc7ab
2 changed files with 54 additions and 0 deletions
32
.github/workflows/linux_ci_build.yml
vendored
Normal file
32
.github/workflows/linux_ci_build.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: Godot Linux Build Test
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download Godot 4.5-beta3 (Linux headless)
|
||||
run: |
|
||||
wget https://github.com/godotengine/godot-builds/releases/download/4.5-beta3/Godot_v4.5-beta3_linux.x86_64.zip -O godot.zip
|
||||
unzip godot.zip -d godot-bin
|
||||
chmod +x godot-bin/Godot_v4.5-beta3_linux.x86_64
|
||||
|
||||
- name: Install export templates
|
||||
run: |
|
||||
mkdir -p ~/.local/share/godot/export_templates/4.5.beta3
|
||||
wget https://github.com/godotengine/godot-builds/releases/download/4.5-beta3/Godot_v4.5-beta3_export_templates.tpz -O templates.tpz
|
||||
unzip -q templates.tpz -d /tmp
|
||||
mv /tmp/templates/* ~/.local/share/godot/export_templates/4.5.beta3/
|
||||
|
||||
- name: Prepare build directory
|
||||
run: |
|
||||
rm -rf build
|
||||
mkdir -p build
|
||||
|
||||
- name: Export Linux build
|
||||
run: |
|
||||
godot-bin/Godot_v4.5-beta3_linux.x86_64 \
|
||||
--headless --verbose --path . \
|
||||
--export-release "Linux x86" build/SMB1R.x86_64
|
||||
22
.github/workflows/windows_ci_build.yml
vendored
Normal file
22
.github/workflows/windows_ci_build.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Godot Windows Build Test
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download Godot 4.5-beta3 (Windows headless)
|
||||
shell: pwsh
|
||||
run: |
|
||||
Invoke-WebRequest -Uri https://github.com/godotengine/godot-builds/releases/download/4.5-beta3/Godot_v4.5-beta3_win64.exe.zip -OutFile godot.zip
|
||||
Expand-Archive godot.zip -DestinationPath godot-bin
|
||||
|
||||
- name: Clear build directory
|
||||
run: |
|
||||
if (Test-Path build) { Remove-Item build -Recurse -Force }
|
||||
|
||||
- name: Export Windows build
|
||||
run: |
|
||||
godot-bin\Godot_v4.5-beta3_win64.exe --headless --verbose --path . --export-release "Windows Desktop x86" build\SMB1R.exe
|
||||
Loading…
Add table
Add a link
Reference in a new issue