-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: adding action to build keytools on windows
- Loading branch information
1 parent
2cdc1f5
commit 18eb3f8
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Windows Keytools executables | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
# Step 1: Checkout the repository | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Set up MSBuild | ||
- name: Set up MSBuild Environment | ||
shell: powershell | ||
run: | | ||
# Ensure Visual Studio Build Tools are installed | ||
choco install visualstudio2022buildtools --yes | ||
choco install visualstudio2022-workload-vctools --yes | ||
# Step 3: Build the solution | ||
- name: Build Solution | ||
shell: cmd | ||
run: | | ||
"C:\Program Files\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" tools/keytools/wolfBootKeyTools.sln /p:Configuration=Release /p:Platform="x64" | ||
# Step 4: Upload executables as artifacts | ||
- name: Upload EXE Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: windows-keytools | ||
path: | | ||
tools\keytools\*.exe |