From 38e45f1215f9cb6f1879adea22e042add1f16002 Mon Sep 17 00:00:00 2001 From: Xavier Fischer Date: Sat, 7 Feb 2026 16:15:03 +0100 Subject: [PATCH 1/4] gh actions --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9600440 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build + +on: + push: + branches: [ master, main, develop ] + pull_request: + branches: [ master, main, develop ] + workflow_dispatch: + +jobs: + build: + name: Build and Test + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build solution + run: dotnet build --configuration Release --no-restore + + - name: Run tests + run: dotnet test --configuration Release --no-build --verbosity normal + continue-on-error: true + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: Shape2SqlServer-Release + path: | + Shape2SqlServer/bin/Release/net10.0-windows/**/* + retention-days: 7 diff --git a/README.md b/README.md index 8a37014..b7f5f1e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Shape2SqlServer [![Build status](https://ci.appveyor.com/api/projects/status/github/xfischer/Shape2SqlServer)](https://ci.appveyor.com/project/xfischer/Shape2SqlServer) +# Shape2SqlServer [![Build](https://github.com/xfischer/Shape2SqlServer/actions/workflows/build.yml/badge.svg)](https://github.com/xfischer/Shape2SqlServer/actions/workflows/build.yml) Easy and fast shapefile import to MS SQL Server From 1ddde75a1f01bb25259add2cac2329192dbbbdef Mon Sep 17 00:00:00 2001 From: Xavier Fischer Date: Sat, 7 Feb 2026 16:18:00 +0100 Subject: [PATCH 2/4] removed tests and artifcats --- .github/workflows/build.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9600440..21b632d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,14 +2,14 @@ name: Build on: push: - branches: [ master, main, develop ] + branches: [ mmain, develop ] pull_request: - branches: [ master, main, develop ] + branches: [ main, develop ] workflow_dispatch: jobs: build: - name: Build and Test + name: Build runs-on: windows-latest steps: @@ -27,14 +27,3 @@ jobs: - name: Build solution run: dotnet build --configuration Release --no-restore - - name: Run tests - run: dotnet test --configuration Release --no-build --verbosity normal - continue-on-error: true - - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: Shape2SqlServer-Release - path: | - Shape2SqlServer/bin/Release/net10.0-windows/**/* - retention-days: 7 From d085f41a508b652ac3aa4ed6da69201f24ba142b Mon Sep 17 00:00:00 2001 From: Xavier Fischer Date: Sat, 7 Feb 2026 16:18:17 +0100 Subject: [PATCH 3/4] typo --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21b632d..ecf4d9c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: [ mmain, develop ] + branches: [ main, develop ] pull_request: branches: [ main, develop ] workflow_dispatch: From 02f2d1b741557bcfbe7dbafcff44f08c8a29d2e4 Mon Sep 17 00:00:00 2001 From: Xavier Fischer Date: Sat, 7 Feb 2026 16:23:21 +0100 Subject: [PATCH 4/4] no restore --- .github/workflows/build.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecf4d9c..c8231ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: push: branches: [ main, develop ] pull_request: - branches: [ main, develop ] + branches: [ main, develop ] workflow_dispatch: jobs: @@ -21,9 +21,6 @@ jobs: with: dotnet-version: '10.0.x' - - name: Restore dependencies - run: dotnet restore - - name: Build solution - run: dotnet build --configuration Release --no-restore + run: dotnet build -c Release