Skip to content

Commit 177c186

Browse files
authored
Merge branch 'swig:master' into master
2 parents 31280ab + d9edb22 commit 177c186

File tree

1,979 files changed

+80951
-44522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,979 files changed

+80951
-44522
lines changed

.github/workflows/ci.yml .github/workflows/linux.yml

+176-88
Large diffs are not rendered by default.

.github/workflows/windows-cmake.yml

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: windows-cmake
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'CHANGES*'
7+
- 'Doc/**'
8+
- 'appveyor.yml'
9+
pull_request:
10+
branches: master
11+
paths-ignore:
12+
- 'CHANGES*'
13+
- 'Doc/**'
14+
- 'appveyor.yml'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
cmake:
21+
runs-on: ${{ matrix.os }}
22+
23+
name: CMake VS ${{ matrix.VER }}
24+
25+
strategy:
26+
matrix:
27+
include:
28+
- VER: '17 2022'
29+
os: 'windows-2022'
30+
- VER: '16 2019'
31+
os: 'windows-2019'
32+
33+
env:
34+
BUILD_SYS: Visual Studio ${{ matrix.VER }}
35+
36+
steps:
37+
- name: Machine Info
38+
shell: powershell
39+
run: |
40+
systeminfo | findstr /B /C:"OS Name" /B /C:"OS Version"
41+
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
with:
45+
show-progress: true
46+
47+
- name: Install CCache
48+
uses: hendrikmuhs/ccache-action@v1
49+
with:
50+
key: ${{ matrix.os }}
51+
52+
- name: Install NuGet Packages
53+
shell: powershell
54+
run: |
55+
nuget install PCRE2 -OutputDirectory C:\Tools
56+
nuget install Bison -OutputDirectory C:\Tools
57+
58+
# https://cygwin.com/cygwin-ug-net/cygpath.html
59+
- name: Prepare Environment
60+
shell: bash
61+
run: |
62+
cat << EOF >> $GITHUB_ENV
63+
PCRE2_PATH=$(cygpath -w "$(ls -d /C/Tools/PCRE2*)")
64+
EOF
65+
BISON_PATH=$(cygpath -w "$(ls -d /C/Tools/Bison*)/bin")
66+
echo "$BISON_PATH" >> $GITHUB_PATH
67+
68+
- name: Configure
69+
shell: powershell
70+
run: |
71+
cmake --version
72+
cmake -G "$env:BUILD_SYS" -A x64 `
73+
-DCMAKE_INSTALL_PREFIX="C:\Tools\swig" `
74+
-DCMAKE_C_FLAGS="/W3 /EHsc /DPCRE2_STATIC" `
75+
-DCMAKE_CXX_FLAGS="/W3 /EHsc /DPCRE2_STATIC" `
76+
-DPCRE2_INCLUDE_DIR="$env:PCRE2_PATH\include" `
77+
-DPCRE2_LIBRARY="$env:PCRE2_PATH\lib\pcre2-8-static.lib" `
78+
-DLINK_FLAGS="/NODEFAULTLIB:MSVCRT" -S . -B .
79+
80+
- name: Build
81+
shell: powershell
82+
run: |
83+
cmake --build . --config Release
84+
85+
- name: Test
86+
shell: powershell
87+
run: |
88+
ctest --output-on-failure -V -C Release
89+
90+
- name: Install
91+
shell: powershell
92+
run: |
93+
cmake --install .
94+
C:\Tools\swig\bin\swig.exe -version

0 commit comments

Comments
 (0)