Skip to content

Commit d0f12ce

Browse files
Add Windows build.
QEMU 9 is available for Windows, but not for Ubuntu 24.04 (unless you compile it from source, and I don't want to do that).
1 parent 07e1535 commit d0f12ce

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ jobs:
292292
run: |
293293
cargo test --manifest-path cortex-ar/Cargo.toml
294294
295-
# Run some programs in QEMU
296-
qemu-test:
295+
# Run some programs in QEMU 8 on Linux (but not MPS3-AN536 examples)
296+
qemu-test-linux:
297297
runs-on: ubuntu-24.04
298298
needs: [build-all]
299299
steps:
@@ -302,9 +302,26 @@ jobs:
302302
uses: actions/checkout@v4
303303
- run: ./tests.sh
304304

305+
# Run some programs in QEMU 9 on Windows (including MPS3-AN536 examples)
306+
qemu-test-windows:
307+
runs-on: windows-latest
308+
needs: [build-all]
309+
steps:
310+
- name: Checkout
311+
uses: actions/checkout@v4
312+
- run: choco install qemu
313+
- run: ./tests.sh
314+
315+
# Gather all the above qemu jobs together for the purposes of getting an overall pass-fail
316+
qemu-test-all:
317+
runs-on: ubuntu-24.04
318+
needs: [qemu-test-linux, qemu-test-windows]
319+
steps:
320+
- run: /bin/true
321+
305322
# Gather all the above xxx-all jobs together for the purposes of getting an overall pass-fail
306323
all:
307324
runs-on: ubuntu-24.04
308-
needs: [docs-all, build-all, fmt-all, unit-test, qemu-test] # not gating on clippy-all
325+
needs: [docs-all, build-all, fmt-all, unit-test, qemu-test-all] # not gating on clippy-all
309326
steps:
310327
- run: /bin/true

0 commit comments

Comments
 (0)