Skip to content

Commit fa6df8e

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 fa6df8e

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 2 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,6 +31,8 @@ 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
@@ -85,6 +87,7 @@ jobs:
8587

8688
- uses: actions/checkout@v4
8789
with:
90+
submodules: true
8891
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
8992

9093
- name: Cache SonarCloud packages

.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)