Skip to content

Commit c05ee38

Browse files
author
Aliaksandr Adziareika
committed
Update build-sdk action to align with main
1 parent c7be3ab commit c05ee38

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/actions/build-sdk/action.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ inputs:
2222
description: 'Build configuration (Release, Debug). Required for multi-config generators (Visual Studio)'
2323
required: false
2424
default: ''
25-
enable-tests:
26-
description: 'Run tests after build'
27-
required: false
28-
default: 'false'
2925
enable-32bit:
3026
description: 'Build for 32-bit architecture'
3127
required: false
3228
default: 'false'
29+
enable-tests:
30+
description: 'Run tests after build'
31+
required: false
32+
default: 'false'
33+
3334
outputs:
3435
gtest-xml-path:
3536
description: 'Path to GTest XML reports directory'
@@ -56,11 +57,9 @@ runs:
5657

5758
- name: Setup cmake
5859
uses: jwlawson/actions-setup-cmake@v2
59-
with:
60-
cmake-version: '4.0'
6160

6261
- name: Install Windows dependencies
63-
if: runner.os == 'Windows' && inputs.additional-dependencies != ''
62+
if: runner.os == 'Windows'
6463
shell: pwsh
6564
run: choco install ${{ inputs.additional-dependencies }} -y --no-progress
6665

@@ -83,6 +82,22 @@ runs:
8382
if: inputs.cmake-generator == 'Ninja'
8483
uses: seanmiddleditch/gha-setup-ninja@v5
8584

85+
- name: Setup MSYS2 MINGW64
86+
if: runner.os == 'Windows'
87+
id: msys2
88+
uses: msys2/setup-msys2@v2
89+
with:
90+
msystem: MINGW64
91+
update: false
92+
install: mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc
93+
94+
- name: Add MSYS2 MINGW64 to PATH
95+
if: runner.os == 'Windows'
96+
shell: bash
97+
run: |
98+
echo "${{ steps.msys2.outputs.msys2-location }}/mingw64/bin" >> $GITHUB_PATH
99+
echo "Added MSYS2 MINGW64 to PATH: ${{ steps.msys2.outputs.msys2-location }}/mingw64/bin"
100+
86101
# https://github.com/actions/runner-images/issues/10001
87102
- name: Setup MSVC toolchain
88103
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)