File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -139,3 +139,48 @@ jobs:
139139 with :
140140 name : ${{ matrix.os }}-${{ matrix.configuration }}-${{ github.event.inputs.COMMIT_SHA }}
141141 path : ${{ github.event.inputs.COMMIT_SHA }}.tar.gz
142+
143+ windows-tests :
144+ name : Windows Devsh DXC smoke tests
145+ needs : windows
146+ runs-on : windows-2022
147+ strategy :
148+ fail-fast : false
149+ matrix :
150+ configuration : [Debug, Release]
151+ env :
152+ os : windows-latest
153+ COMMIT_SHA : ${{ github.event.inputs.COMMIT_SHA }}
154+
155+ steps :
156+ - name : Checkout repository
157+ uses : actions/checkout@v3
158+ with :
159+ ref : ${{ github.event.inputs.COMMIT_SHA }}
160+ fetch-depth : 1
161+ sparse-checkout : |
162+ unittests
163+
164+ - name : Download DXCompiler artifact
165+ uses : actions/download-artifact@v4
166+ with :
167+ name : ${{ env.os }}-${{ matrix.configuration }}-${{ github.event.inputs.COMMIT_SHA }}
168+ path : artifacts
169+
170+ - name : Unpack DXCompiler into unittests\Devsh\install
171+ run : |
172+ cmake -E tar xzf artifacts\${{ github.event.inputs.COMMIT_SHA }}.tar.gz
173+ cmake -E make_directory unittests\Devsh\install
174+ cmake -E copy_directory build\install unittests\Devsh\install
175+ shell : cmd
176+
177+ - name : Configure Devsh unit tests
178+ run : |
179+ cmake -S unittests\Devsh -B unittests\Devsh\build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
180+ shell : cmd
181+
182+ - name : Run Devsh DXC smoke tests
183+ run : |
184+ ctest -C ${{ matrix.configuration }} -VV -R dxc_smoke --output-on-failure
185+ working-directory : unittests\Devsh\build
186+ shell : cmd
You can’t perform that action at this time.
0 commit comments