Skip to content

Commit

Permalink
fix conditions?
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiisu-Master authored Aug 28, 2024
1 parent 759f4e6 commit 0e3b9f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/export-optimized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ jobs:
fi
- name: Install dependencies
run: |
if ["${{ matrix.platform }}" = "macos"]; then
if ["${{ matrix.platform }}" == 'macos']; then
brew install scons
fi
if ["${{ matrix.platform }}" = "windows"] || ["${{ matrix.platform }}" = "linux"]; then
if ['${{ matrix.platform }}' == 'windows'] || ['${{ matrix.platform }}' == 'linux']; then
sudo apt update
sudo apt install -y scons python3
fi
if ["${{ matrix.platform }}" = "windows"]; then
if ['${{ matrix.platform }}' == 'windows']; then
sudo apt install -y g++-mingw-w64-x86-64-posix
sudo apt install -y --fix-missing wine64
wget -q https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe
Expand All @@ -75,7 +75,7 @@ jobs:
fi
# TODO: Compile with angle libs
# if ["${{ matrix.platform }}" = "windows"] || ["${{ matrix.platform }}" = "macos"]; then
# if ['${{ matrix.platform }}' == 'windows'] || ['${{ matrix.platform }}' == 'macos']; then
# mkdir -p angle_libs
# pushd angle_libs
# base_url=https://github.com/godotengine/godot-angle-static/releases/download/chromium%2F6601.2/godot-angle-static
Expand Down Expand Up @@ -111,16 +111,16 @@ jobs:
run: |
godot --help # Make sure godot command is available before wasting time building the template (Workflow would fail later and not cache it).
pushd godot
if ["${{ matrix.platform }}" = "linux"]; then
if ['${{ matrix.platform }}' == 'linux']; then
scons p=linuxbsd arch=x86_64 optimize=speed ${BUILD_OPTIONS}
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/
mv ./bin/godot.linuxbsd.template_release.x86_64 ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/linux_release.x86_64
elif ["${{ matrix.platform }}" = "windows"]; then
echo "Building winbows"
elif ['${{ matrix.platform }}' == 'windows']; then
echo 'Building winbows'
scons p=windows arch=x86_64 ${BUILD_OPTIONS}
mkdir -v -p ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/
mv ./bin/godot.windows.template_release.x86_64.exe ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/windows_release_x86_64.exe
elif ["${{ matrix.platform }}" = "macos"]; then
elif ['${{ matrix.platform }}' == 'macos']; then
scons p=macos arch=arm64 optimize=speed ${BUILD_OPTIONS}
scons p=macos arch=x86_64 optimize=speed ${BUILD_OPTIONS}
# TODO: Properly package this
Expand Down

0 comments on commit 0e3b9f6

Please sign in to comment.