Skip to content

Commit 5a82516

Browse files
committed
Configures CI and build settings
- Reverts CodeQL analysis to use ubuntu-latest runner due to memory issues. - Enables fetching submodules in CodeQL analysis workflow to ensure proper analysis. - Disables fetching submodules in release workflow and sets fetch-depth to 0 for tag history processing. - Enables Windows targeting and sets publish ready to run options.
1 parent 7ffc487 commit 5a82516

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ on:
1313
jobs:
1414
analyzeQL:
1515
name: Analyze with CodeQL
16-
# runs-on: [windows-latest] # may cause Out of Memory errors
17-
runs-on: [self-hosted]
16+
runs-on: [ubuntu-latest] # may cause Out of Memory errors
17+
# runs-on: [self-hosted]
1818

1919
permissions:
2020
# required for all workflows
@@ -31,17 +31,18 @@ jobs:
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
34+
with:
35+
submodules: true
3436

3537
- name: Initialize CodeQL
3638
uses: github/codeql-action/init@v3
3739
with:
3840
languages: ${{ matrix.language }}
3941

40-
4142
- name: Setup .NET Core SDK
4243
uses: actions/[email protected]
4344
with:
44-
dotnet-version: ${{vars.DOTNET_VERSION}}
45+
dotnet-version: ${{env.DOTNET_VERSION}}
4546

4647
- name: Restore Solution
4748
run: dotnet restore ./FASTER.sln
@@ -85,8 +86,14 @@ jobs:
8586

8687
- uses: actions/checkout@v4
8788
with:
89+
submodules: true
8890
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
89-
91+
92+
- name: Setup .NET Core SDK
93+
uses: actions/[email protected]
94+
with:
95+
dotnet-version: ${{env.DOTNET_VERSION}}
96+
9097
- name: Cache SonarCloud packages
9198
uses: actions/cache@v4
9299
with:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
steps:
4444
- name: Checkout
4545
uses: actions/checkout@v4
46+
with:
47+
submodules: false
4648

4749
# Install the .NET Core workload
4850
- name: Install .NET Core
@@ -91,6 +93,7 @@ jobs:
9193
- name: Checkout
9294
uses: actions/checkout@v4
9395
with:
96+
submodules: false
9497
fetch-depth: 0 # required for tags history processing
9598

9699
- name: Download x64 artifact

FASTER.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
1414
FASTER_Version.xml = FASTER_Version.xml
1515
NuGet.Config = NuGet.Config
16+
.github\workflows\publish.yml = .github\workflows\publish.yml
1617
README.md = README.md
18+
.github\workflows\release.yml = .github\workflows\release.yml
1719
EndProjectSection
1820
EndProject
1921
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FASTERTests", "FASTERTests\FASTERTests.csproj", "{65FDF864-BF9B-414A-A6E6-3473BCFB62BE}"

FASTER/FASTER.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
44
<TargetFramework>net9.0-windows</TargetFramework>
5+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
56
<Nullable>enable</Nullable>
67
<ImplicitUsings>enable</ImplicitUsings>
78
<UseWPF>true</UseWPF>
@@ -18,7 +19,7 @@
1819
<PackageReadmeFile>README.md</PackageReadmeFile>
1920
<RepositoryUrl>https://github.com/Foxlider/FASTER</RepositoryUrl>
2021
<PackageLicenseFile>LICENSE</PackageLicenseFile>
21-
22+
2223
<PublishReadyToRun>true</PublishReadyToRun>
2324
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
2425
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>

0 commit comments

Comments
 (0)