Skip to content

Commit 22535e6

Browse files
author
Bud
committed
Uploaded manual workflow dispatching to signpath
1 parent fc73fea commit 22535e6

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Virtual Display Driver Building
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: windows-latest
9+
strategy:
10+
matrix:
11+
configuration: [Release]
12+
platform: [x64, ARM64]
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Setup MSBuild
18+
uses: microsoft/setup-msbuild@v1
19+
20+
- name: Check Chocolatey installation
21+
run: choco --version
22+
23+
- name: Install Visual Studio 2022 dependencies
24+
run: |
25+
choco install visualstudio2022-workload-manageddesktop -y || exit 1
26+
choco install visualstudio2022-workload-nativedesktop -y || exit 1
27+
choco install visualstudio2022-workload-vctools -y || exit 1
28+
choco install windowsdriverkit11 -y || exit 1
29+
30+
- name: Build the driver
31+
run: |
32+
msbuild "Virtual Display Driver (HDR)/MTTVDD.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}
33+
34+
- name: List build directory
35+
run: dir "Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD"
36+
37+
- name: Upload built driver
38+
id: upload_artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: Built-Driver-${{ matrix.configuration }}-${{ matrix.platform }}
42+
path: |
43+
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\MttVDD.dll
44+
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\MttVDD.inf
45+
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\mttvdd.cat
46+
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\vdd_settings.xml
47+
48+
- name: Generate release tag
49+
id: generate_tag
50+
run: |
51+
$releaseTag = (Get-Date).ToString('yy.MM.dd')
52+
echo "RELEASE_TAG=$releaseTag" >> $env:GITHUB_ENV
53+
54+
- name: Show generated release tag
55+
run: |
56+
echo "Generated Release Tag: ${{ env.RELEASE_TAG }}"
57+
58+
- name: Verify Built Artifacts
59+
run: dir 'Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD'
60+
61+
62+
- name: Submit signing request to SignPath
63+
id: signpath_request
64+
uses: signpath/github-action-submit-signing-request@v1
65+
with:
66+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
67+
organization-id: '407be075-e08f-4033-a34d-d1aa1dd2578a'
68+
project-slug: 'Virtual-Display-Driver'
69+
signing-policy-slug: 'test-signing'
70+
github-artifact-id: '${{ steps.upload_artifact.outputs.artifact-id }}'
71+
wait-for-completion: true
72+
output-artifact-directory: 'SignedArtifacts'
73+
parameters: |
74+
Version: ${{ matrix.configuration }}
75+
Release_Tag: "${{ env.RELEASE_TAG }}"
76+
77+
- name: Verify Signed Artifacts
78+
run: dir 'SignedArtifacts'

0 commit comments

Comments
 (0)