Skip to content

Commit 7b3207e

Browse files
amomchiloveightbitraptor
authored andcommitted
1 parent b4aa746 commit 7b3207e

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/mingw.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,23 @@ jobs:
3737
env:
3838
MSYSTEM: ${{ matrix.msystem }}
3939
MSYS2_ARCH: >-
40-
${{
41-
contains(matrix.msystem, 'arm64') && 'aarch64' ||
42-
contains(matrix.msystem, '64') && 'x86_64' || 'i686'
43-
}}
40+
${{ case(
41+
contains(matrix.msystem, 'arm64'), 'aarch64',
42+
contains(matrix.msystem, '64'), 'x86_64',
43+
'i686'
44+
) }}
4445
MINGW_PACKAGE_PREFIX: >-
4546
mingw-w${{
4647
endsWith(matrix.msystem, '64') && '64' || '32'
47-
}}-${{
48-
startsWith(matrix.msystem, 'clang') && 'clang' ||
49-
startsWith(matrix.msystem, 'ucrt') && 'ucrt' ||
48+
}}-${{ case(
49+
startsWith(matrix.msystem, 'clang'), 'clang',
50+
startsWith(matrix.msystem, 'ucrt'), 'ucrt',
5051
'mingw'
51-
}}-${{
52-
contains(matrix.msystem, 'arm64') && 'aarch64' ||
53-
endsWith(matrix.msystem, '64') && 'x86_64' || 'i686'
54-
}}
52+
) }}-${{ case(
53+
contains(matrix.msystem, 'arm64'), 'aarch64',
54+
endsWith(matrix.msystem, '64'), 'x86_64',
55+
'i686'
56+
) }}
5557
CFLAGS: '-mtune=generic -O3 -pipe'
5658
CXXFLAGS: '-mtune=generic -O3 -pipe'
5759
CPPFLAGS: '-D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048'

0 commit comments

Comments
 (0)