From 9007b04cb644c6e7f1caff3c2cce9d54ae9650fb Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 12 Sep 2020 04:04:07 +0300 Subject: [PATCH] Added 32-bit Windows & Linux builds to the release workflow --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e3d3799d..0be82203f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,19 +32,24 @@ jobs: submodules: true - name: Setup 💻 run: | - mkdir -v -p build/windows-64bit ~/.local/share/godot/templates + mkdir -v -p build/windows-64bit build/windows-32bit ~/.local/share/godot/templates mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - name: Windows Build 🔧 - run: godot -v --export "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe + run: | + godot -v --export "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe + godot -v --export "Windows Desktop 32-bit" ./build/windows-32bit/$EXPORT_NAME.exe - name: Copy pixelorama_data folder 📁 run: | cp -R ./pixelorama_data ./build/windows-64bit rm ./build/windows-64bit/pixelorama_data/.gdignore + cp -R ./pixelorama_data ./build/windows-32bit + rm ./build/windows-32bit/pixelorama_data/.gdignore - name: Zip 🗜️ run: | cd build zip -r windows-64bit.zip windows-64bit - - name: Upload Release Asset 🚀 + zip -r windows-32bit.zip windows-32bit + - name: Upload 64-bit Release Asset 🚀 uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -52,6 +57,14 @@ jobs: asset_name: ${{env.EXPORT_NAME}}[Windows-64bit].zip tag: ${{env.TAG}} overwrite: true + - name: Upload 32-bit Release Asset + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./build/windows-32bit.zip + asset_name: ${{env.EXPORT_NAME}}[Windows-32bit].zip + tag: ${{env.TAG}} + overwrite: true export-linux: name: Linux Export 🐧 @@ -65,22 +78,28 @@ jobs: submodules: true - name: Setup 💻 run: | - mkdir -v -p build/linux-64bit ~/.local/share/godot/templates + mkdir -v -p build/linux-64bit build/linux-32bit ~/.local/share/godot/templates mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - name: Linux Build 🔧 - run: godot -v --export "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64 + run: | + godot -v --export "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64 + godot -v --export "Linux/X11 32-bit" ./build/linux-32bit/$EXPORT_NAME.x86 - name: Give execute permission ☑️ run: chmod +x ./build/linux-64bit/$EXPORT_NAME.x86_64 + chmod +x ./build/linux-32bit/$EXPORT_NAME.x86 - name: Copy pixelorama_data folder 📁 run: | cp -R ./pixelorama_data ./build/linux-64bit rm ./build/linux-64bit/pixelorama_data/.gdignore + cp -R ./pixelorama_data ./build/linux-32bit + rm ./build/linux-32bit/pixelorama_data/.gdignore - name: Create tar.gz archive 🗜️ run: | cd build tar zcvf linux-64bit.tar.gz linux-64bit - - name: Upload Release Asset 🚀 + tar zcvf linux-32bit.tar.gz linux-32bit + - name: Upload 64-bit Release Asset 🚀 uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -88,6 +107,14 @@ jobs: asset_name: ${{env.EXPORT_NAME}}[Linux-64bit].tar.gz tag: ${{env.TAG}} overwrite: true + - name: Upload 32-bit Release Asset + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./build/linux-32bit.tar.gz + asset_name: ${{env.EXPORT_NAME}}[Linux-32bit].tar.gz + tag: ${{env.TAG}} + overwrite: true export-mac: name: Mac Export 🍎