-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.29 KB
/
build-driver-solution.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: build-driver-solution
on:
workflow_dispatch:
# push:
# branches:
# - main
defaults:
run:
shell: pwsh
jobs:
build:
strategy:
fail-fast: false
matrix:
runson: [windows-2019, windows-2022, windows-2025]
runs-on: ${{ matrix.runson }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
repository: 'microsoft/Windows-driver-samples'
submodules: 'recursive'
path: 'Windows-driver-samples'
# - name: Restore dependencies
# shell: pwsh
# run: |
# nuget restore "$($env:GITHUB_WORKSPACE + "\usb\ufxclientsample\ufxclientsample.sln")" -Verbosity Detailed
- name: Install Nuget Packages
run: nuget restore .\packages.config -PackagesDirectory .\packages\
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: debug
run: |
ls
"$($env:GITHUB_WORKSPACE + "\usb\ufxclientsample\ufxclientsample.sln")"
Test-Path "$($env:GITHUB_WORKSPACE + "\usb\ufxclientsample\ufxclientsample.sln")"
- name: Build solution
working-directory: usb\ufxclientsample
run: |
msbuild "ufxclientsample.sln" "/p:Configuration=Release" "/p:Platform=x64"