Skip to content

Commit

Permalink
[CI] add windows-mingw without artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
kambala-decapitator committed Feb 24, 2024
1 parent 10694f1 commit 2612498
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
preset: release-msvc
artifact: '*.Win32.exe'
useQtAction: true
- os: windows-latest
platform: windows-mingw
preset: release-ninja
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -47,6 +50,21 @@ jobs:
with:
arch: x64
toolset: 14.29
- name: Setup msys2
uses: msys2/setup-msys2@v2
if: ${{ matrix.platform == 'windows-mingw' }}
with:
update: true
install: >-
mingw-w64-x86_64-cmake
mingw-w64-x86_64-gcc
mingw-w64-x86_64-ninja
mingw-w64-x86_64-qt6-base
mingw-w64-x86_64-qt6-tools
- name: Put MSYS2_MinGW64 on PATH
if: ${{ matrix.platform == 'windows-mingw' }}
run: |
echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Configure
run: |
cmake --preset ${{ matrix.preset || 'release' }}
Expand Down
8 changes: 6 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
}
},
{
"name": "release-macos",
"name": "release-ninja",
"inherits": "release",
"generator": "Ninja",
"generator": "Ninja"
},
{
"name": "release-macos",
"inherits": "release-ninja",
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.0"
Expand Down

0 comments on commit 2612498

Please sign in to comment.