Rewrite tests to python for windows runtime testing #404
Workflow file for this run
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: Windows Build Test | |
| on: | |
| push: | |
| branches: ['*'] | |
| pull_request: | |
| branches: ['*'] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| timeout-minutes: 10 | |
| env: | |
| BUILD_PLATFORM: x64 | |
| BUILD_CONFIGURATION: Release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: wolfssl/wolfssl | |
| ref: master | |
| path: wolfssl | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: wolfclu | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Replace user_settings.h | |
| run: cp wolfclu/ide/winvs/user_settings.h wolfssl/IDE/WIN/user_settings.h | |
| - name: Detect platform toolset | |
| id: toolset | |
| run: | | |
| $major = (vswhere -latest -property installationVersion).Split('.')[0] | |
| $toolsets = @{ "16" = "v142"; "17" = "v143"; "18" = "v145" } | |
| $ts = $toolsets[$major] | |
| if (-not $ts) { | |
| Write-Error "Unsupported Visual Studio major version '$major'." | |
| exit 1 | |
| } | |
| echo "value=$ts" >> $env:GITHUB_OUTPUT | |
| - name: Build wolfSSL | |
| run: msbuild /m /p:PlatformToolset=${{ steps.toolset.outputs.value }} /p:Platform=${{ env.BUILD_PLATFORM }} /p:Configuration=${{ env.BUILD_CONFIGURATION }} wolfssl/wolfssl64.sln | |
| - name: Build wolfCLU | |
| working-directory: wolfclu | |
| run: msbuild /m /p:Platform=${{ env.BUILD_PLATFORM }} /p:Configuration=${{ env.BUILD_CONFIGURATION }} wolfclu.sln | |
| - name: Run tests | |
| working-directory: wolfclu | |
| run: python tests/run_tests.py | |