-
Notifications
You must be signed in to change notification settings - Fork 40
58 lines (46 loc) · 1.6 KB
/
windows-check.yml
File metadata and controls
58 lines (46 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Windows Build Test
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
build:
if: github.repository_owner == 'wolfssl'
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