diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..69b4cea7 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,31 @@ +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: 6.0.428 + - 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 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 %*