Skip to content

Commit 0bf4210

Browse files
fixup! [#70236] Add windows tests to gh actions
1 parent 3b4f851 commit 0bf4210

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,11 @@ jobs:
175175

176176
build-examples-windows:
177177
name: Build Examples Windows
178-
runs-on: windows-latest
179178
needs: [build-zephyr-binaries, build-systemc]
179+
runs-on: windows-latest
180+
defaults:
181+
run:
182+
shell: bash
180183
steps:
181184
- uses: actions/checkout@v4
182185

@@ -208,17 +211,16 @@ jobs:
208211
renode-revision: ${{ inputs.renode_gitrev || 'master' }}
209212

210213
- name: Build Windows examples
214+
shell: bash
211215
run: |
212-
exec cmd //c "$RUNNER_TEMP/setup-msys2/msys2 $0"
213216
mkdir -p artifacts/windows_example_binaries
214217
mkdir -p artifacts/windows_test_binaries
215218
mkdir -p build
216219
pushd build
217-
cmake .. -DCMAKE_SYSTEM_NAME=Windows \
218-
-DCMAKE_CXX_STANDARD=14 \
219-
-DUSER_SYSTEMC_INCLUDE_DIR=$(pwd)/../systemc/src \
220-
-DUSER_SYSTEMC_LIB_DIR=$(pwd)/../artifacts/systemc_windows
221-
make
220+
mingw32-cmake.exe .. -DCMAKE_CXX_STANDARD=14 \
221+
-DUSER_SYSTEMC_INCLUDE_DIR=$(pwd)/../systemc/src \
222+
-DUSER_SYSTEMC_LIB_DIR=$(pwd)/../artifacts/systemc_windows
223+
mingw32-make.exe
222224
popd
223225
for i in examples/*/; do
224226
cp "$i"/bin/* artifacts/windows_example_binaries

0 commit comments

Comments
 (0)