another attempt #213
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x86 | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'squeek502/win32-samples-rc-tests' | |
submodules: true | |
ref: ci-debug | |
path: 'win32-samples-rc-tests' | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'rogerorr/NtTrace' | |
path: 'NtTrace' | |
- name: Compile NtTrace | |
working-directory: ./NtTrace | |
run: nmake /f NtTrace.mak | |
- name: Add NtTrace to PATH | |
run: Add-Content $env:GITHUB_PATH "$env:GITHUB_WORKSPACE\NtTrace" | |
- name: Test Win32 Samples | |
if: ${{ matrix.os == 'windows-latest' }} | |
working-directory: ./win32-samples-rc-tests | |
run: nttrace powershell ".\test.ps1" > trace.log | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: trace | |
path: 'win32-samples-rc-tests/Windows-classic-samples/Samples/Win7Samples/dataaccess/oledb_conformance/oledb/datalite/trace.log' |