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