diff options
| author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-11-09 19:54:35 +0100 |
|---|---|---|
| committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2022-11-09 19:54:35 +0100 |
| commit | b069a2acf10e58579d82500fb057f275647507c0 (patch) | |
| tree | 9accce56f9ae6e0424680810afa485cd5dc93be5 /.github/workflows | |
| parent | 726fde4e8de3ae50df0373476ba1d952c04b7b67 (diff) | |
Clean Windows build instructions
* CMake in MSYS2 now depends on Ninja and uses it by default, use it
instead of Make as it has much easier to read output when doing
parallel builds and doesn't need an extra program
* Ninja uses the maximum number of cores by default, so we don't have to
run nproc --all
* We don't need mesa for its headers anymore
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build-windows.yml | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 27a53a4..70b11c0 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -27,19 +27,15 @@ jobs: update: true - name: Install dependencies - run: pacman -Sq --noconfirm git make pkgconf mingw-w64-x86_64-{cmake,mesa,SDL2,qt5-static,libslirp,libarchive,libepoxy,toolchain} - - - name: Create build environment - working-directory: ${{runner.workspace}} - run: mkdir build + run: pacman -Sq --noconfirm git pkgconf mingw-w64-x86_64-{cmake,SDL2,qt5-static,libslirp,libarchive,toolchain} - name: Configure - working-directory: ${{runner.workspace}}/build - run: cmake $GITHUB_WORKSPACE -G 'MSYS Makefiles' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=C:/tools/msys64/mingw64/qt5-static + working-directory: ${{runner.workspace}} + run: cmake -B build $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_STATIC=ON -DCMAKE_PREFIX_PATH=C:/tools/msys64/mingw64/qt5-static - name: Make working-directory: ${{runner.workspace}}/build - run: make -j$(nproc --all) + run: cmake --build . - uses: actions/upload-artifact@v1 with: |