Skip to content

Commit cbd178a

Browse files
committed
Set NuGet environment variables in build step
1 parent c2d630d commit cbd178a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ jobs:
2525
- name: Clean install dependencies
2626
run: npm ci
2727

28-
- name: Build application
28+
- name: Build application (Windows)
29+
if: runner.os == 'Windows'
30+
run: |
31+
npm run make -- --arch x64
32+
npm run make -- --arch arm64
33+
env:
34+
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
35+
NUGET_HTTP_CACHE_PATH: ${{ github.workspace }}/.nuget/cache
36+
37+
- name: Build application (Linux)
38+
if: runner.os == 'Linux'
2939
run: npm run make -- --arch x64,arm64
3040

3141
- name: Upload artifacts

0 commit comments

Comments
 (0)