From 13ad7e6b7107f6f687acb017c3dc53a1bba49e32 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 3 Jun 2025 12:44:41 +1000 Subject: [PATCH 1/4] Create GitHub action for CI builds --- .github/workflows/CI.yml | 84 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..ca22ac8 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,84 @@ +name: CI + +on: + + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + ununtu: + runs-on: ubuntu-latest + env: + DOTNET_NOLOGO: true + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore Figgle.sln + + - name: Build solution (Release) + run: dotnet build Figgle.sln --configuration Release + - name: Build solution (Debug) + run: dotnet build Figgle.sln --configuration Debug + + - name: Test Figgle.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + - name: Test Figgle.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + + - name: Test Figgle.Generator.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + - name: Test Figgle.Generator.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + + - name: Test Figgle.Generator.AcceptanceTests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj + - name: Test Figgle.Generator.AcceptanceTests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj + +# - name: Publish NativeAOT +# run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj + + windows: + runs-on: windows-latest + env: + DOTNET_NOLOGO: true + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore Figgle.sln + + - name: Build solution (Release) + run: dotnet build Figgle.sln --configuration Release + - name: Build solution (Debug) + run: dotnet build Figgle.sln --configuration Debug + + - name: Test Figgle.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + - name: Test Figgle.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Tests/Figgle.Tests.csproj + + - name: Test Figgle.Generator.Tests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + - name: Test Figgle.Generator.Tests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj + + - name: Test Figgle.Generator.AcceptanceTests (Release) + run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj + - name: Test Figgle.Generator.AcceptanceTests (Debug) + run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj + +# - name: Publish NativeAOT +# run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj From 38c88bd36be0ba07c24d77b3b1260206478a5c76 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 3 Jun 2025 12:47:14 +1000 Subject: [PATCH 2/4] Update CI.yml --- .github/workflows/CI.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ca22ac8..0ebe969 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -38,11 +38,6 @@ jobs: - name: Test Figgle.Generator.Tests (Debug) run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj - - name: Test Figgle.Generator.AcceptanceTests (Release) - run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj - - name: Test Figgle.Generator.AcceptanceTests (Debug) - run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj - # - name: Publish NativeAOT # run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj @@ -75,10 +70,5 @@ jobs: - name: Test Figgle.Generator.Tests (Debug) run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.Tests/Figgle.Generator.Tests.csproj - - name: Test Figgle.Generator.AcceptanceTests (Release) - run: dotnet test --verbosity normal --configuration Release --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj - - name: Test Figgle.Generator.AcceptanceTests (Debug) - run: dotnet test --verbosity normal --configuration Debug --no-build --framework net8.0 Figgle.Generator.AcceptanceTests/Figgle.Generator.AcceptanceTests.csproj - # - name: Publish NativeAOT # run: dotnet publish --verbosity normal --configuration Release --framework net8.0 Figgle/Figgle.csproj From 035564eeae0efacb40a1e414a6b6723e5014e2cb Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 3 Jun 2025 12:59:53 +1000 Subject: [PATCH 3/4] Remove appveyor --- Figgle.sln | 1 - appveyor.yml | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 appveyor.yml diff --git a/Figgle.sln b/Figgle.sln index 96c36fa..789fab5 100644 --- a/Figgle.sln +++ b/Figgle.sln @@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig .gitignore = .gitignore - appveyor.yml = appveyor.yml Directory.Build.props = Directory.Build.props spec\figfont.html = spec\figfont.html spec\figfont.txt = spec\figfont.txt diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 3b53b49..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: 0.5.{build} -skip_tags: true -image: Visual Studio 2022 -configuration: -- Release -- Debug -before_build: - - appveyor-retry nuget restore -build: - parallel: true - verbosity: minimal -test: - assemblies: - only: - - Figgle.Tests.dll - - Figgle.Generator.Tests.dll - - Figgle.Generator.AcceptanceTests.dll -test_script: - - dotnet test .\Figgle.Tests\Figgle.Tests.csproj --no-build - - dotnet test .\Figgle.Generator.Tests\Figgle.Generator.Tests.csproj --no-build - - dotnet test .\Figgle.Generator.AcceptanceTests\Figgle.Generator.AcceptanceTests.csproj --no-build From 9107a15384a6f96762815f1661a7e851d7eac8f0 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 3 Jun 2025 13:04:51 +1000 Subject: [PATCH 4/4] Add GitHub action to solution items --- Figgle.sln | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Figgle.sln b/Figgle.sln index 789fab5..193282b 100644 --- a/Figgle.sln +++ b/Figgle.sln @@ -295,6 +295,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Figgle.Generator.Tests", "F EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Figgle.Generator.AcceptanceTests", "Figgle.Generator.AcceptanceTests\Figgle.Generator.AcceptanceTests.csproj", "{E9177B5C-626B-44E6-87B4-2D712FB52DC9}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" + ProjectSection(SolutionItems) = preProject + .github\workflows\CI.yml = .github\workflows\CI.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -383,6 +388,7 @@ Global EndGlobalSection GlobalSection(NestedProjects) = preSolution {39B8EEFC-2BF9-4E33-B299-0BF4016AC5D7} = {4A36A179-AB9F-4D63-8409-A7400F65C139} + {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {4A36A179-AB9F-4D63-8409-A7400F65C139} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {69F27669-F6DA-410D-8F8B-9E6877CC73F4}