diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2022-09-30 23:43:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 23:43:45 +0100 |
commit | 28202a0e272b2646bacfc3a1ab33e6b74d23b703 (patch) | |
tree | c7bded6362134c22f6aee06efc0efb7b1d8707fc /.github | |
parent | 929cfde883eac37bf2c2f439a0d9163dcf570376 (diff) | |
parent | e45d8d0efd26ec5109229074fe5154b9dd47c927 (diff) | |
download | swig-28202a0e272b2646bacfc3a1ab33e6b74d23b703.tar.gz |
Merge pull request #2249 from geographika/pcre-nuget
Update Windows CMake builds to use NuGet package for PCRE2
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/nuget.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 000000000..7b8174a1e --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,59 @@ +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 + shell: powershell + 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: powershell + run: | + $env:PATH="C:\Tools\CMake\CMake-win64.3.15.5\bin;C:\Tools\bison\Bison.3.7.4\bin;" + $env:PATH + $PCRE_ROOT="C:\Tools\pcre2\PCRE2.10.39.0" + $PCRE_PLATFORM="x64" + $WORKING_DIR=(Get-Location).ToString() -replace "\\","/" + cmake -G "Visual Studio 16 2019" -A "x64" ` + -DCMAKE_INSTALL_PREFIX="$WORKING_DIR/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 + + - name: Install + shell: powershell + run: | + cmake --install build --config Release + + - name: Test + shell: powershell + working-directory: install2/bin + run: | + swig.exe -version |