forked from ge9/IddSampleDriver
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Without sign path to make sure build works - Workflow on dispatch ( save on vm time)
- Loading branch information
Showing
1 changed file
with
60 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,60 @@ | ||
name: Virtual Display Driver Building | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
configuration: [Debug, Release] | ||
platform: [x64, ARM64] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Check Chocolatey installation | ||
run: choco --version | ||
|
||
- name: Install Visual Studio 2022 dependencies | ||
run: | | ||
choco install visualstudio2022-workload-manageddesktop -y || exit 1 | ||
choco install visualstudio2022-workload-nativedesktop -y || exit 1 | ||
choco install visualstudio2022-workload-vctools -y || exit 1 | ||
choco install windowsdriverkit11 -y || exit 1 | ||
- name: Build the driver | ||
run: | | ||
msbuild "Virtual Display Driver (HDR)/MTTVDD.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} | ||
- name: List build directory | ||
run: dir "Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD" | ||
|
||
- name: Upload built driver | ||
id: upload_artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Built-Driver-${{ matrix.configuration }}-${{ matrix.platform }} | ||
path: | | ||
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\MttVDD.dll | ||
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\MttVDD.inf | ||
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\mttvdd.cat | ||
Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD\vdd_settings.xml | ||
- name: Generate release tag | ||
id: generate_tag | ||
run: | | ||
$releaseTag = (Get-Date).ToString('yy.MM.dd') | ||
echo "RELEASE_TAG=$releaseTag" >> $env:GITHUB_ENV | ||
- name: Show generated release tag | ||
run: | | ||
echo "Generated Release Tag: ${{ env.RELEASE_TAG }}" | ||
- name: Verify Built Artifacts | ||
run: dir 'Virtual Display Driver (HDR)\${{ matrix.platform }}\${{ matrix.configuration }}\MttVDD' | ||
|