6767 - name : Checkout
6868 uses : actions/checkout@v4
6969 with :
70+ submodules : true
7071 fetch-depth : 0
7172
72- - name : Setup submodules
73- shell : bash
74- run : |
75- auth_header="$(git config --local --get http.https://github.com/.extraheader)"
76- git submodule sync --recursive
77- git -c core.longpaths=true -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive || true
78-
7973 - name : Get OS Architecture
8074 if : runner.os == 'MacOS' || runner.os == 'Linux'
8175 run : uname -m
@@ -106,7 +100,6 @@ jobs:
106100 libcurl4-openssl-dev \
107101 libglfw3-dev \
108102 libuv1-dev \
109- g++-12 \
110103 libjpeg-dev \
111104 libpng-dev \
112105 libwebp-dev
@@ -137,7 +130,7 @@ jobs:
137130 if : ${{contains(runner.name, 'GitHub Actions')}}
138131 uses : jwlawson/actions-setup-cmake@v2
139132 with :
140- cmake-version : ' 3.29.2 '
133+ cmake-version : ' 3.31 '
141134
142135 - name : cmake version
143136 run : |
@@ -174,14 +167,7 @@ jobs:
174167 - name : Configure maplibre-native (MacOS)
175168 if : runner.os == 'MacOS'
176169 run : |
177- cmake . -B build \
178- -G Ninja \
179- -DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }} \
180- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
181- -DMLN_WITH_NODE=ON \
182- -DMLN_WITH_OPENGL=OFF \
183- -DMLN_WITH_METAL=ON \
184- -DMLN_WITH_WERROR=OFF
170+ cmake --preset macos-node -DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }}
185171
186172 - name : Configure maplibre-native (Linux)
187173 if : runner.os == 'Linux'
@@ -191,7 +177,6 @@ jobs:
191177 -DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }} \
192178 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
193179 -DCMAKE_C_COMPILER=gcc-12 \
194- -DCMAKE_CXX_COMPILER=g++-12 \
195180 -DMLN_WITH_NODE=ON
196181
197182 - name : " Create directory '${{ github.workspace }}/platform/windows/vendor/vcpkg/bincache' (Windows)"
@@ -214,11 +199,12 @@ jobs:
214199
215200 - name : Configure maplibre-native (Windows)
216201 if : runner.os == 'Windows'
202+ shell : pwsh
217203 run : |
218- cmake . -B build \
219- -G Ninja \
220- -DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }} \
221- -DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
204+ cmake . -B build `
205+ -G Ninja `
206+ -DCMAKE_BUILD_TYPE=${{ env.BUILDTYPE }} `
207+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache `
222208 -DMLN_WITH_NODE=ON
223209
224210 - name : Build maplibre-native (MacOS/Linux)
0 commit comments