From b10ba8fea00ecd1e94aa6176c685c26c6501c1e1 Mon Sep 17 00:00:00 2001 From: iTrooz_ Date: Fri, 2 Sep 2022 16:12:02 +0200 Subject: [PATCH] build: Add NoGPU (Software Rendering) version for Windows (#716) * add NoGPU (Software Rendering) version for Windows * rename the NoGPU artifact * add emoji to a step --- .github/workflows/build.yml | 30 +++++++++++++++++++++++------- .github/workflows/release.yml | 6 ++++-- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12dea6792..5a745c97f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,13 +101,6 @@ jobs: cpack echo "ImHex checks for the existence of this file to determine if it is running in portable mode. You should not delete this file" > $PWD/install/PORTABLE - - name: ⬆️ Upload Portable ZIP - uses: actions/upload-artifact@v3 - with: - name: Windows Portable - path: | - build/install/* - - name: ⬆️ Upload Windows Installer uses: actions/upload-artifact@v3 with: @@ -115,6 +108,29 @@ jobs: path: | build/*.msi + - name: ⬆️ Upload Portable ZIP + uses: actions/upload-artifact@v3 + with: + name: Windows Portable + path: | + build/install/* + + - name: ⬇️ Download Mesa3D for NoGPU version + shell: bash + run: | + echo "NoGPU version Powered by Mesa 3D : https://fdossena.com/?p=mesa%2Findex.frag" > build/install/MESA.md + curl https://downloads.fdossena.com/geth.php?r=mesa64-latest -L -o mesa.7z + 7z e mesa.7z + mv opengl32.dll build/install + + + - name: ⬆️ Upload NoGPU Portable ZIP + uses: actions/upload-artifact@v3 + with: + name: Windows Portable NoGPU + path: | + build/install/* + # MacOS build macos: runs-on: macos-11 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4c87c967..d1eddadeb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,8 +58,10 @@ jobs: fi done - - name: 🟩 Rename Windows Portable Zip - run: mv "Windows Portable.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable.zip + - name: 🟩 Rename artifacts when needed + run: | + mv "Windows Portable.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable.zip + mv "Windows Portable NoGPU.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable-NoGPU.zip - name: ⬆️ Upload everything to release uses: softprops/action-gh-release@v1