BuildIt #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BuildIt | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- name: "Clone source" | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: "Setup msvc" | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: "Download Qt5" | |
shell: bash | |
run: | | |
curl --output C:/qt5.7z -L "https://github.com/LoL-Fantome/lolcustomskin-tools/releases/download/release23/qt5.15.5-x86_64-msvc-static.7z" | |
7z x -oC:/ C:/qt5.7z | |
- name: "Download patcher" | |
shell: bash | |
run: | | |
curl --output cslol-patcher.zip -L "https://github.com/LeagueToolkit/cslol-patcher/releases/latest/download/cslol-patcher.zip" | |
7z x -o./cslol-tools/ cslol-patcher.zip | |
- name: "Build" | |
run: | | |
mkdir build | |
cd build | |
cmake -G "NMake Makefiles" "-DCMAKE_PREFIX_PATH:PATH=C:/qt5.15.5-x86_64-msvc-static" "-DCMAKE_MSVC_RUNTIME_LIBRARY:STRING=MultiThreaded" "-DCMAKE_BUILD_TYPE:STRING=Release" .. | |
cmake --build . | |
- name: "Package" | |
shell: bash | |
run: | | |
./make-release.sh build | |
7z a cslol-manager-windows.zip cslol-manager/ | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: cslol-manager-windows | |
path: cslol-manager-windows.zip | |
retention-days: 15 |