Skip to content

Commit

Permalink
Fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupeyy committed Jan 21, 2025
1 parent 328123b commit 3a6229f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ jobs:
build-args: --parallel
package-file: fng-*-linux_x86_64.tar.xz
- os: windows-latest
cmake-args: -G "Visual Studio 16 2019" -A x64
cmake-args: -G "Ninja"
package-file: fng-*-win64.zip
defaults:
run:
shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash {0}' }}
steps:
- name: Prepare Windows (msys2)
uses: msys2/setup-msys2@v2
if: contains(matrix.os, 'windows')
with:
msystem: MINGW64

steps:
- uses: actions/checkout@v4
Expand All @@ -35,6 +44,11 @@ jobs:
sudo apt-get update -y
sudo apt-get install pkg-config cmake -y
- name: Prepare msys dependencies
if: contains(matrix.os, 'windows')
run: |
pacman --noconfirm -S git mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc
- name: Build in release mode
run: |
mkdir release
Expand Down

0 comments on commit 3a6229f

Please sign in to comment.