summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsethg <sethg@geographika.co.uk>2022-09-27 09:48:19 +0200
committersethg <sethg@geographika.co.uk>2022-09-27 09:48:19 +0200
commit95d255e16e1272fb6898ed9fe330f1d66c1f18da (patch)
treeac3894af681833ad093db6d12c0ae73c9fbab682 /.github
parentae0e62dd1ad8e8f2054ceb1908b9fcceccbc64eb (diff)
downloadswig-95d255e16e1272fb6898ed9fe330f1d66c1f18da.tar.gz
Switch Action and docs to use PowerShell
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nuget.yml21
1 files changed, 14 insertions, 7 deletions
diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml
index 02100ab94..f664d306c 100644
--- a/.github/workflows/nuget.yml
+++ b/.github/workflows/nuget.yml
@@ -25,23 +25,30 @@ jobs:
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: cmd
+ shell: powershell
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
+ $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 --target install
- name: Test
- shell: cmd
+ shell: powershell
working-directory: install2/bin
run: |
swig.exe -version