Skip to content

Commit 55ac07e

Browse files
authored
Enable .NET9 builds (#670)
* build * intrinsics * infer * codeql * try4 * try4 * 3 * fix codeql * revert proj ---------
1 parent 0c6dd7f commit 55ac07e

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -52,8 +52,8 @@ jobs:
5252

5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
55+
#- name: Autobuild
56+
# uses: github/codeql-action/autobuild@v3
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -65,6 +65,16 @@ jobs:
6565
#- run: |
6666
# make bootstrap
6767
# make release
68+
- name: Setup .NET SDK
69+
uses: actions/setup-dotnet@v4
70+
with:
71+
dotnet-version: '9.0.x'
72+
73+
- name: Restore dependencies
74+
run: dotnet restore
75+
76+
- name: Build
77+
run: dotnet build --configuration Debug --no-restore
6878

6979
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@v3

.github/workflows/gate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
3.1.x
2525
6.0.x
2626
8.0.x
27+
9.0.x
2728
- name: Install dependencies
2829
run: dotnet restore
2930
- name: Build
@@ -98,6 +99,7 @@ jobs:
9899
dotnet-version: |
99100
6.0.x
100101
8.0.x
102+
9.0.x
101103
- name: Install dependencies
102104
run: dotnet restore
103105
- name: Build
@@ -139,6 +141,7 @@ jobs:
139141
dotnet-version: |
140142
6.0.x
141143
8.0.x
144+
9.0.x
142145
- name: Install dependencies
143146
run: dotnet restore
144147
- name: Build

.github/workflows/infer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup .NET Core
1919
uses: actions/setup-dotnet@v2
2020
with:
21-
dotnet-version: 8.0.x
21+
dotnet-version: 9.0.x
2222
- name: Install dependencies
2323
run: dotnet restore
2424
- name: Build

BitFaster.Caching/Intrinsics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Runtime.Intrinsics.X86;
33
#endif
44

5-
#if NET6_0
5+
#if NET6_0_OR_GREATER
66
using System.Runtime.Intrinsics.Arm;
77
#endif
88

0 commit comments

Comments
 (0)