-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (44 loc) · 1.11 KB
/
build-mingw64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'mingw64-x86_64'
on:
workflow_call:
inputs:
run_build:
required: true
type: boolean
workflow_dispatch:
inputs:
run_build:
default: true
jobs:
mingw:
name: msys2/mingw64 ${{ matrix.builds.arch }}
defaults:
run:
shell: C:\shells\msys2bash.cmd {0}
strategy:
matrix:
builds:
- arch: x86_64
bin: /mingw64/bin
- arch: i686
bin: /mingw32/bin
runs-on: windows-latest
if: inputs.run_build == true
steps:
- name: Setup host
run: <
pacman -S
mingw-w64-${{ matrix.builds.arch }}-gcc
mingw-w64-${{ matrix.builds.arch }}-cmake
mingw-w64-${{ matrix.builds.arch }}-ninja
--noconfirm
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build-cmake-preset
with:
preset-name: gcc-release
artifact-label: ${{ github.job }}
cmake-args: -D SILKIT_BUILD_DOCS=OFF
target: mingw
extra-path: ${{ matrix.builds.bin}}: