Skip to content

Commit

Permalink
try installing and restoring on D drive
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Dec 9, 2024
1 parent 50f1fb3 commit d7b4141
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
POWERSHELL_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

jobs:
build:
Expand All @@ -21,8 +20,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-2019, windows-2022]
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
include:
- os: windows-2019
DOTNET_INSTALL_DIR: D:\dotnet
NUGET_PACKAGES: D:\nuget\packages
- os: windows-2022
DOTNET_INSTALL_DIR: D:\dotnet
NUGET_PACKAGES: D:\nuget\packages
- os: windows-2019
DOTNET_INSTALL_DIR: ''
- os: windows-2022
DOTNET_INSTALL_DIR: ''
cache: [true, false]
fail-fast: false
env:
NUGET_PACKAGES: ${{ matrix.NUGET_PACKAGES }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -33,10 +46,15 @@ jobs:
if: matrix.cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.nuget/packages
path: ${{ matrix.NUGET_PACKAGES }}
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-

- name: Set Windows Environment Variables
if: startsWith(matrix.os, 'windows') && matrix.DOTNET_INSTALL_DIR != ''
shell: pwsh
run: echo "DOTNET_INSTALL_DIR=${{ matrix.DOTNET_INSTALL_DIR }}" >> $ENV:GITHUB_ENV

- name: Setup DotNet 8
uses: actions/setup-dotnet@v4
with:
Expand Down

0 comments on commit d7b4141

Please sign in to comment.