diff options
author | sethg <sethg@geographika.co.uk> | 2022-08-20 15:54:27 +0200 |
---|---|---|
committer | sethg <sethg@geographika.co.uk> | 2022-08-20 15:54:27 +0200 |
commit | dbebb2dac81499b34505e6bcd460c90622e4df29 (patch) | |
tree | 1118368b2a969e9f7f0da6644205044729832074 /.github/workflows/nuget.yml | |
parent | e60a02941fa0329f4f7c30d6e0b9560b95570bb9 (diff) | |
download | swig-dbebb2dac81499b34505e6bcd460c90622e4df29.tar.gz |
Add GitHub Action to test Windows builds using Nuget as described in the docs
Diffstat (limited to '.github/workflows/nuget.yml')
-rw-r--r-- | .github/workflows/nuget.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 000000000..f42ee784a --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,47 @@ +name: Windows Nuget Build + +on: + push: + paths-ignore: + - 'CHANGES*' + - 'Doc/**' + - 'appveyor.yml' + pull_request: + branches: master + paths-ignore: + - 'CHANGES*' + - 'Doc/**' + - 'appveyor.yml' + +jobs: + build: + + runs-on: windows-2019 + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install Dependencies + run: | + nuget install CMake-win64 -Version 3.15.5 -OutputDirectory C:\Tools\CMake + nuget install Bison -Version 3.7.4 -OutputDirectory C:\Tools\bison + nuget install PCRE2 -Version 10.39 -OutputDirectory C:\Tools\pcre2 + + - name: Build + shell: cmd + run: | + SET PATH=C:\Tools\CMake\CMake-win64.3.15.5\bin;C:\Tools\bison\Bison.3.7.4\bin;%PATH% + SET PCRE_ROOT=C:\Tools\pcre2\PCRE2.10.39.0 + SET PCRE_PLATFORM=x64 + cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_INSTALL_PREFIX="%CD:\=/%/install2" -DCMAKE_C_FLAGS="/DPCRE2_STATIC" ^ + -DCMAKE_CXX_FLAGS="/DPCRE2_STATIC" -DPCRE2_INCLUDE_DIR=%PCRE_ROOT%/include -DPCRE2_LIBRARY=%PCRE_ROOT%/lib/pcre2-8-static.lib -S . -B build + cmake --build build --config Release --target install + + - name: Test + shell: cmd + working-directory: install2/bin + run: | + swig.exe -help |