Skip to content

Commit

Permalink
Don't use actions/setup-dotnet on self-hosted Windows (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Dec 27, 2024
1 parent 1900669 commit 91655a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
with:
submodules: recursive
- name: "Setup Dotnet for use with actions"
# don't run on self-hosted Windows
if: ${{ !contains(toJSON(matrix.os), 'windows') || !contains(toJSON(matrix.os), 'self-hosted') }}
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v4
# don't run on self-hosted Windows
if: ${{ !contains(toJSON(matrix.os), 'windows') || !contains(toJSON(matrix.os), 'self-hosted') }}
with:
global-json-file: global.json
- name: "Test"
Expand Down

0 comments on commit 91655a0

Please sign in to comment.