Optimized the CI.
Some checks failed
godot-ci export / Windows Export (push) Has been cancelled

This commit is contained in:
Paul Black 2024-06-09 08:07:14 +00:00
parent 02e4652810
commit 17373930d1

View file

@ -30,38 +30,20 @@ jobs:
cd /workspace/$USER/ cd /workspace/$USER/
mkdir -v -p build/windows mkdir -v -p build/windows
cd $PROJECT cd $PROJECT
godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe godot --headless --verbose --export-release "Windows Desktop" ../build/windows/$EXPORT_NAME.exe
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: windows
path: /workspace/the_adventures_of_teddy/build/windows
export-linux:
name: Linux Export
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
cd ~/.local/share/godot/export_templates/
wget https://techwizz-emu.com/downloads/godot-export-templates/4.2.2.stable.tar.xz
tar xf 4.2.2.stable.tar.xz
wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip
unzip Godot_v4.2.2-stable_linux.x86_64.zip
mv Godot_v4.2.2-stable_linux.x86_64 /usr/bin/godot
- name: Linux Build - name: Linux Build
run: | run: |
cd /workspace/$USER/ cd /workspace/$USER/
mkdir -v -p build/linux mkdir -v -p build/linux
cd $PROJECT cd $PROJECT
godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 godot --headless --verbose --export-release "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64
- name: Upload Artifact - name: Upload Windows Artifacts
uses: actions/upload-artifact@v3
with:
name: windows
path: /workspace/the_adventures_of_teddy/build/windows
- name: Upload Linux Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: linux name: linux
path: /workspace/the_adventures_of_teddy/build/linux path: /workspace/the_adventures_of_teddy/build/linux