update workflow in github
[liba.git] / .github / workflows / mingw.yml
blob60e7f15e28dd1c7c4df7b64537d4711805af1225
1 name: mingw
2 on:
3   workflow_dispatch:
4 jobs:
5   MinGW:
6     strategy:
7       fail-fast: false
8       matrix:
9         include: [
10           { mingw: MinGW64 },
11           { mingw: MinGW32 },
12         ]
13     runs-on: ubuntu-latest
14     steps:
15       - uses: actions/checkout@v4
16         with:
17           lfs: true
18           submodules: true
19       - name: Run setup
20         run: |
21           set -x
22           sudo apt-get -y install nsis mingw-w64
23       - name: Run cmake
24         run: |
25           set -x
26           cmake -S . -B build --toolchain cmake/Use${{ matrix.mingw }}.cmake \
27             -DBUILD_TESTING=1 \
28             -DLIBA_WARNINGS=1 \
29             -DLIBA_STATIC=1
30           cmake --build build --target package