Skip to content

Commit b56f7e7

Browse files
authored
Add packages path
1 parent a53a2b5 commit b56f7e7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build-driver.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ jobs:
1818

1919
- name: Add msbuild to PATH
2020
uses: microsoft/setup-msbuild@v2
21+
22+
- name: Nuget install
23+
run: |
24+
nuget restore ./AmtPtpDeviceUsbUm/MagicTrackpad2PtpDevice.vcxproj -PackagesDirectory=${{ github.workspace }}\packages
25+
nuget restore ./AmtPtpHidFilter/AmtPtpHidFilter.vcxproj -PackagesDirectory=${{ github.workspace }}\packages
26+
Add-Content $env:GITHUB_PATH "${{ github.workspace }}\packages\Microsoft.Windows.WDK.x64.10.0.26100.6584\c\bin\10.0.26100.0\x64"
2127
2228
- name: Build driver
2329
shell: bash
2430
run: |
25-
nuget.exe restore ./AmtPtpDeviceUsbUm/MagicTrackpad2PtpDevice.vcxproj
26-
nuget.exe restore ./AmtPtpHidFilter/AmtPtpHidFilter.vcxproj
2731
msbuild.exe ./AmtPtpDeviceUsbUm/MagicTrackpad2PtpDevice.vcxproj -p:Configuration=Release -p:Platform=x64
2832
msbuild.exe ./AmtPtpHidFilter/AmtPtpHidFilter.vcxproj -p:Configuration=Release -p:Platform=x64
2933
mkdir bin

0 commit comments

Comments
 (0)