From 30828ab52f9a34e8910329405b869504b6c198ac Mon Sep 17 00:00:00 2001 From: webwarrior-ws Date: Tue, 11 Nov 2025 14:19:55 +0800 Subject: [PATCH 1/4] CI: add GitHubActions workflow --- .github/workflows/CI.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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 00000000..75308431 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + pull_request: + +jobs: + buildAndTest: + + runs-on: + - windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.415 + - name: Build & Run Tests + run: | + .\build.cmd From 3cbd66a0e26f9cc3c84ca76d7f9ad7a15e276ea6 Mon Sep 17 00:00:00 2001 From: webwarrior-ws Date: Tue, 11 Nov 2025 15:19:16 +0800 Subject: [PATCH 2/4] build.cmd: abort if interim step fails So that it gets propagated properly and gets caught by the CI build. --- build.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.cmd b/build.cmd index 866b0710..ba1844ac 100644 --- a/build.cmd +++ b/build.cmd @@ -2,9 +2,9 @@ rem change the target via -t, e.g.: rem build -t PackNuget cls -dotnet tool restore -dotnet paket restore +dotnet tool restore || exit /b 1 +dotnet paket restore || exit /b 1 rem set FAKE_SDK_RESOLVER_CUSTOM_DOTNET_VERSION=8.0 rem Build with Fake or FSI: -dotnet fake run build.fsx %* +dotnet fake run build.fsx %* || exit /b 1 rem dotnet fsi build.fsx %* From f7d715eca414361645fc19d0b6e0540a3256d457 Mon Sep 17 00:00:00 2001 From: webwarrior-ws Date: Tue, 11 Nov 2025 15:23:15 +0800 Subject: [PATCH 3/4] GitHubActionsCI: switch to .NET6 to fix build --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 75308431..cc11160e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,7 +15,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.0.415 + dotnet-version: 6.0.428 - name: Build & Run Tests run: | .\build.cmd From 8b75da1b87ae9ec79d39df06712a2d646cd677ee Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Tue, 11 Nov 2025 15:27:42 +0800 Subject: [PATCH 4/4] CI: add GitHubActions artifacts & rm AppVeyor Co-authored-by: webwarrior-ws Fixes https://github.com/fsprojects/SQLProvider/issues/863 --- .github/workflows/CI.yml | 10 ++++++++++ appveyor.yml | 14 -------------- 2 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 appveyor.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cc11160e..69b4cea7 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,3 +19,13 @@ jobs: - name: Build & Run Tests run: | .\build.cmd + - name: Upload artifact (bin) + uses: actions/upload-artifact@v4 + with: + name: bin + path: bin + - name: Upload artifact (dist) + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index e458529f..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,14 +0,0 @@ -init: - - git config --global core.autocrlf input -build_script: - - cmd: build.cmd -test: off -version: 0.0.1.{build} -image: Visual Studio 2022 -install: - - cmd: choco install dotnetcore-sdk -y -artifacts: - - path: bin - name: bin - - path: dist - name: dist