From 224b7f8d9ee2c2dbe19dcb7d101337cc8abd726c Mon Sep 17 00:00:00 2001 From: hcooper Date: Mon, 16 Mar 2026 22:08:41 -0700 Subject: [PATCH] github workflow --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) 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..9579a8c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,50 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v2 + + - name: Restore NuGet packages + run: nuget restore rw.sln + + - name: Build RW project + run: msbuild rw\RW.vcxproj /p:Configuration=Debug /p:Platform=Win32 + continue-on-error: true + + - name: Build GPSBabel project + run: msbuild gpsbabel\msvc\GPSBabel.vcxproj /p:Configuration=Debug /p:Platform=Win32 + continue-on-error: true + + - name: Upload RW artifacts + uses: actions/upload-artifact@v4 + if: always() + with: + name: rw-debug + path: | + rw/Debug/**/*.exe + rw/Debug/**/*.dll + if-no-files-found: warn + + - name: Upload GPSBabel artifacts + uses: actions/upload-artifact@v4 + if: always() + with: + name: gpsbabel-debug + path: | + gpsbabel/Debug/**/*.exe + gpsbabel/Debug/**/*.dll + if-no-files-found: warn