Skip to content

Commit 18eb3f8

Browse files
committed
Test: adding action to build keytools on windows
1 parent 2cdc1f5 commit 18eb3f8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Windows Keytools executables
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
jobs:
11+
build-windows:
12+
runs-on: windows-latest
13+
14+
steps:
15+
# Step 1: Checkout the repository
16+
- name: Checkout Code
17+
uses: actions/checkout@v3
18+
19+
# Step 2: Set up MSBuild
20+
- name: Set up MSBuild Environment
21+
shell: powershell
22+
run: |
23+
# Ensure Visual Studio Build Tools are installed
24+
choco install visualstudio2022buildtools --yes
25+
choco install visualstudio2022-workload-vctools --yes
26+
27+
# Step 3: Build the solution
28+
- name: Build Solution
29+
shell: cmd
30+
run: |
31+
"C:\Program Files\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" tools/keytools/wolfBootKeyTools.sln /p:Configuration=Release /p:Platform="x64"
32+
33+
# Step 4: Upload executables as artifacts
34+
- name: Upload EXE Artifacts
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: windows-keytools
38+
path: |
39+
tools\keytools\*.exe

0 commit comments

Comments
 (0)