Skip to content

Commit 704ed82

Browse files
committed
Use static versions for GitHub action runners
1 parent 967a0a8 commit 704ed82

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
strategy:
3535
fail-fast: false
3636
matrix:
37-
os: [ macos-latest, ubuntu-latest, windows-latest ]
37+
os: [ macos-15, ubuntu-24.04, windows-2022 ]
3838
include:
39-
- os: macos-latest
39+
- os: macos-15
4040
os_name: macos
41-
- os: ubuntu-latest
41+
- os: ubuntu-24.04
4242
os_name: linux
43-
- os: windows-latest
43+
- os: windows-2022
4444
os_name: windows
4545

4646
steps:
@@ -110,7 +110,7 @@ jobs:
110110

111111
validate-packages:
112112
needs: build
113-
runs-on: ubuntu-latest
113+
runs-on: ubuntu-24.04
114114
steps:
115115
- name: Download packages
116116
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
@@ -141,7 +141,7 @@ jobs:
141141
142142
push-packages-myget:
143143
needs: [ build, validate-packages ]
144-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-24.04
145145
if: |
146146
(github.ref_name == github.event.repository.default_branch ||
147147
startsWith(github.ref, 'refs/heads/dev') ||
@@ -165,7 +165,7 @@ jobs:
165165

166166
push-packages-nuget:
167167
needs: [ build, validate-packages ]
168-
runs-on: ubuntu-latest
168+
runs-on: ubuntu-24.04
169169
if: |
170170
github.event.repository.fork == false &&
171171
startsWith(github.ref, 'refs/tags/')

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
sponsor_job:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1010
<NoWarn>$(NoWarn);CS1591;NU5128</NoWarn>
1111
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
12-
<NuGetAuditMode>all</NuGetAuditMode>
12+
<NuGetAuditMode>direct</NuGetAuditMode>
1313
<Nullable>enable</Nullable>
1414
<ImplicitUsings>enable</ImplicitUsings>
1515
<DebugSymbols>true</DebugSymbols>

0 commit comments

Comments
 (0)