BuildIt #30
Workflow file for this run
This file contains hidden or 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@v4 | |
| 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.13-x86_64-msvc-static.7z" | |
| sha256sum C:/qt5.7z | |
| 7z x -oC:/ C:/qt5.7z | |
| - name: "Build" | |
| run: | | |
| mkdir build | |
| cd build | |
| cmake -G "NMake Makefiles" "-DCMAKE_PREFIX_PATH:PATH=C:/qt5.15.13-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@v4 | |
| with: | |
| name: cslol-manager-windows | |
| path: cslol-manager-windows.zip | |
| retention-days: 15 |