Skip to content

Commit e0b0cd1

Browse files
author
gojimmypi
committed
Revise visual-studio workflow PR source
1 parent 95ab5f0 commit e0b0cd1

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/visual-studio.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,52 @@ jobs:
1515
runs-on: windows-2019 # .NET 3.5 is available here
1616

1717
steps:
18-
- name: Checkout Repository (master branch)
18+
# Checkout PR branch instead of master
19+
- name: Checkout Repository (PR branch)
1920
uses: actions/checkout@v3
2021
with:
21-
ref: master # Ensures correct branch is checked out
22+
ref: ${{ github.event.pull_request.head.ref }} # Checkout the PR branch
2223

23-
- name: Checkout wolfSSL (master branch)
24+
- name: Checkout wolfSSL (PR branch)
2425
uses: actions/checkout@v3
2526
with:
26-
repository: ${{ github.repository }} # Uses the repository where the PR was made
27+
repository: ${{ github.event.pull_request.head.repo.full_name }} # Uses the repository where the PR was made
2728
ref: ${{ github.event.pull_request.head.ref }} # Checkout the branch from the PR
2829
path: wolfssl # Clone wolfSSL into the "wolfssl" subdirectory
2930

3031
- name: Setup MSBuild
3132
uses: microsoft/setup-msbuild@v1
3233

33-
# wolfssl core
34+
# wolfssl core
3435
- name: Build wolfSSL (DLL Debug, x64)
3536
working-directory: wolfssl
3637
run: |
3738
msbuild wolfssl.vcxproj /p:Configuration="DLL Debug" /p:Platform=x64 /p:PlatformToolset=v142 /m /verbosity:normal
3839
shell: cmd
3940

40-
# C# Wrapper
41+
# C# Wrapper
4142
- name: Build wolfSSL_CSharp
4243
working-directory: wrapper/CSharp/wolfSSL_CSharp
4344
run: msbuild wolfSSL_CSharp.csproj /p:TargetFrameworkVersion=v3.5
4445

45-
# wolfCrypt-Test
46+
# wolfCrypt-Test
4647
- name: Build wolfCrypt-Test
4748
working-directory: wrapper/CSharp/wolfCrypt-Test
4849
run: msbuild wolfCrypt-Test.csproj /p:TargetFrameworkVersion=v3.5
4950

50-
# DTLS
51-
# TODO wolfSSL-DTLS-Client
51+
# DTLS
52+
# TODO add new wolfSSL-DTLS-Client
5253
- name: Build wolfSSL-DTLS-Server
5354
working-directory: wrapper/CSharp/wolfSSL-DTLS-Server
5455
run: msbuild wolfSSL-DTLS-Server.csproj /p:TargetFrameworkVersion=v3.5
5556

56-
# DTLS-PSK
57-
# TODO wolfSSL-DTLS-PSK-Client
57+
# DTLS-PSK
58+
# TODO add new wolfSSL-DTLS-PSK-Server
5859
- name: Build wolfSSL-DTLS-PSK-Server
5960
working-directory: wrapper/CSharp/wolfSSL-DTLS-PSK-Server
6061
run: msbuild wolfSSL-DTLS-PSK-Server.csproj /p:TargetFrameworkVersion=v3.5
6162

62-
# TLS
63+
# TLS
6364
- name: Build wolfSSL-TLS-Client
6465
working-directory: wrapper/CSharp/wolfSSL-TLS-Client
6566
run: msbuild wolfSSL-TLS-Client.csproj /p:TargetFrameworkVersion=v3.5
@@ -72,7 +73,7 @@ jobs:
7273
working-directory: wrapper/CSharp/wolfSSL-TLS-ServerThreaded
7374
run: msbuild wolfSSL-TLS-ServerThreaded.csproj /p:TargetFrameworkVersion=v3.5
7475

75-
# TLS PSK
76+
# TLS PSK
7677
- name: Build wolfSSL-TLS-PSK-Client
7778
working-directory: wrapper/CSharp/wolfSSL-TLS-PSK-Client
7879
run: msbuild wolfSSL-TLS-PSK-Client.csproj /p:TargetFrameworkVersion=v3.5
@@ -81,7 +82,7 @@ jobs:
8182
working-directory: wrapper/CSharp/wolfSSL-TLS-PSK-Server
8283
run: msbuild wolfSSL-TLS-PSK-Server.csproj /p:TargetFrameworkVersion=v3.5
8384

84-
# Example-IOCallbacks
85+
# Example-IOCallbacks
8586
- name: Build wolfSSL-Example-IOCallbacks
8687
working-directory: wrapper/CSharp/wolfSSL-Example-IOCallbacks
8788
run: msbuild wolfSSL-Example-IOCallbacks.csproj /p:TargetFrameworkVersion=v3.5

0 commit comments

Comments
 (0)