Skip to content

Commit aa809cc

Browse files
committed
CI-windows.yml: also run tests in Windows Server (Core) Docker container
1 parent d381ec2 commit aa809cc

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/CI-windows.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,52 @@ jobs:
6363
run: |
6464
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
6565
python -m pytest integration_test.py -vv || exit /b !errorlevel!
66+
67+
- name: Cache Binaries
68+
uses: actions/cache@v4
69+
with:
70+
path: |
71+
.\${{ matrix.config }}\testrunner.exe
72+
.\${{ matrix.config }}\simplecpp.exe
73+
key: ${{ runner.os }}-simplecpp-${{ github.sha }}
74+
75+
test-core:
76+
needs: build
77+
runs-on: windows-2025
78+
strategy:
79+
matrix:
80+
image: [ "server:ltsc2025", "servercore:ltsc2025" ]
81+
82+
fail-fast: false
83+
84+
container:
85+
image: ${{ matrix.image }}
86+
87+
steps:
88+
- uses: actions/checkout@v4
89+
with:
90+
persist-credentials: false
91+
92+
# TODO: bailout on error
93+
- name: Restore Binaries
94+
uses: actions/cache@v4
95+
with:
96+
path: |
97+
.\${{ matrix.config }}\testrunner.exe
98+
.\${{ matrix.config }}\simplecpp.exe
99+
key: ${{ runner.os }}-simplecpp-${{ github.sha }}
100+
101+
# TODO: how to share the following steps
102+
- name: Test
103+
run: |
104+
.\${{ matrix.config }}\testrunner.exe || exit /b !errorlevel!
105+
106+
- name: Selfcheck
107+
run: |
108+
.\${{ matrix.config }}\simplecpp.exe simplecpp.cpp -e || exit /b !errorlevel!
109+
110+
- name: integration test
111+
run: |
112+
set SIMPLECPP_EXE_PATH=.\${{ matrix.config }}\simplecpp.exe
113+
python -m pytest integration_test.py -vv || exit /b !errorlevel!
66114

0 commit comments

Comments
 (0)