Add files via upload #50
This file contains hidden or 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: Build and Test DRM | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Build UltimateDRM.sln (Release x64) | |
| run: msbuild UltimateDRM.sln /p:Configuration=Release /p:Platform=x64 | |
| - name: Run DRMTest.exe and capture output | |
| shell: pwsh | |
| run: | | |
| ./x64/Release/DRMTest.exe *>&1 | Tee-Object -FilePath output.log | |
| $exitCode = $LASTEXITCODE | |
| Write-Host "Exit code: $exitCode" | |
| exit $exitCode | |
| - name: Upload DRMTest output | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DRMTestLog | |
| path: output.log |