Skip to content

Commit

Permalink
Merge pull request #322 from Labnann/patch-1
Browse files Browse the repository at this point in the history
Temporarily Remove win32-5152 Workflow
  • Loading branch information
Neptune650 authored Dec 11, 2023
2 parents be89b84 + bf14dc8 commit 0cbb1e0
Showing 1 changed file with 0 additions and 115 deletions.
115 changes: 0 additions & 115 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,121 +218,6 @@ jobs:
name: mmc-cracked-win32
path: "D:/UltimMC"

build-windows-5152:
name: build-windows-5152
runs-on: windows-latest

steps:
- uses: actions/checkout@main
with:
submodules: 'recursive'

- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
arch: "win32_mingw81"
cache: true
dir: "D:"
tools: 'tools_mingw,qt.tools.win32_mingw810 tools_openssl_x86'

- name: Setup CMake
run: |
curl -L $(curl -s https://api.github.com/repos/kitware/cmake/releases/latest | python -c "import sys, json; print(json.load(sys.stdin)['assets'][14]['browser_download_url'])") -o cmake.zip
unzip cmake.zip
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
architecture: x86

- name: Setup zlib
run: |
mkdir zlib
cd zlib
C:\msys64\usr\bin\wget.exe -O zlib.zip https://downloads.sourceforge.net/project/gnuwin32/zlib/1.2.3/zlib-1.2.3-bin.zip
C:\msys64\usr\bin\wget.exe -O zliblibs.zip https://downloads.sourceforge.net/project/gnuwin32/zlib/1.2.3/zlib-1.2.3-lib.zip
unzip zlib.zip
unzip zliblibs.zip
- name: Build
shell: cmd
if: steps.build-cached.outputs.cache-hit != 'true'
run: |
for /f "tokens=*" %%n in ('powershell -NoLogo -Command "$(ls $pwd\cmake-*-windows-i386\bin).Fullname"') do @(set PATHCM=%%n)
set PATH=D:\Qt\5.15.2\mingw81_32\bin;D:\Qt\Tools\mingw810_32\bin;
set PATH=%CD%\zlib;%CD%\zlib\bin;%CD%\zlib\lib;%CD%\zlib\include;%PATH%
set PATH=%CD%\OpenSSL;%PATH%
set PATH=%PATHCM%;%PATH%
mkdir build
cd build
cmake ^
-DCMAKE_C_COMPILER=gcc ^
-DCMAKE_CXX_COMPILER=g++ ^
-DCMAKE_BUILD_TYPE=Release ^
-DLauncher_NOTIFICATION_URL:STRING=https://files.multimc.org/notifications.json ^
-DCMAKE_INSTALL_PREFIX:PATH="D:/UltimMC/UltimMC" ^
-DCMAKE_PREFIX_PATH="D:\Qt\5.15.2\mingw81_32" ^
-DQt5_DIR="D:\Qt\5.15.2\mingw81_32" ^
-DLauncher_UPDATER_BASE=https://files.multimc.org/update/ ^
-DLauncher_PASTE_EE_API_KEY:STRING=utLvciUouSURFzfjPxLBf5W4ISsUX4pwBDF7N1AfZ ^
-DLauncher_ANALYTICS_ID:STRING=UA-87731965-2 ^
-DLauncher_LAYOUT=win-bundle ^
-DLauncher_BUILD_PLATFORM=win32-5.15.2 ^
-DLauncher_BUG_TRACKER_URL=https://github.com/UltimMC/Launcher/issues ^
-G "MinGW Makefiles" ^
..
- name: Compile
shell: cmd
run: |
for /f "tokens=*" %%n in ('powershell -NoLogo -Command "$(ls $pwd\cmake-*-windows-i386\bin).Fullname"') do @(set PATHCM=%%n)
set PATH=D:\Qt\5.15.2\mingw81_32\bin;D:\Qt\Tools\mingw810_32\bin;
set PATH=%CD%\zlib;%CD%\zlib\bin;%PATH%
set PATH=%CD%\OpenSSL;%PATH%
set PATH=%PATHCM%;%PATH%
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%PATH%
cd build
mingw32-make tcversion
mingw32-make -j%NUMBER_OF_PROCESSORS%
- name: Test
shell: cmd
run: |
for /f "tokens=*" %%n in ('powershell -NoLogo -Command "$(ls $pwd\cmake-*-windows-i386\bin).Fullname"') do @(set PATHCM=%%n)
set PATH=D:\Qt\5.15.2\mingw81_32\bin;D:\Qt\Tools\mingw810_32\bin;
set PATH=%CD%\zlib;%CD%\zlib\bin;%PATH%
set PATH=%CD%\OpenSSL;%PATH%
set PATH=%PATHCM%;%PATH%
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%PATH%
cd build
mingw32-make test
cmake -E remove_directory "D:/UltimMC/UltimMC"
- name: Install
shell: cmd
run: |
for /f "tokens=*" %%n in ('powershell -NoLogo -Command "$(ls $pwd\cmake-*-windows-i386\bin).Fullname"') do @(set PATHCM=%%n)
set PATH=D:\Qt\5.15.2\mingw81_32\bin;D:\Qt\Tools\mingw810_32\bin;
set PATH=%CD%\zlib;%CD%\zlib\bin;%PATH%
set PATH=%CD%\OpenSSL;%PATH%
set PATH=%PATHCM%;%PATH%
set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%PATH%
cd build
mingw32-make install
- name: Copy OpenSSL
shell: cmd
run: |
copy "D:\Qt\Tools\OpenSSL\Win_x86\bin\*.dll" "D:\UltimMC\UltimMC"
- name: Upload Artifacts
uses: actions/upload-artifact@main
with:
name: mmc-cracked-win32-5152
path: "D:/UltimMC"

build-mac:
name: build-mac
runs-on: macos-latest
Expand Down

0 comments on commit 0cbb1e0

Please sign in to comment.