Skip to content

Commit 111794b

Browse files
committed
chore: combine port trigger step with compile step
1 parent c3e0ecd commit 111794b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,14 @@ jobs:
192192
path: dist/
193193
merge-multiple: true
194194

195-
- name: Trigger port loading
195+
- name: Configure build tools
196196
run: |
197+
cd thirdparty/gdal
198+
# trigger port loading
197199
EM_DATA=$EMSDK/upstream/emscripten
198200
EM_CACHE=$EM_DATA/cache
199201
touch temp.c
200202
emcc -c -s SUPPORT_LONGJMP=wasm -s USE_ZLIB=1 -s USE_LIBPNG=1 -s USE_LIBJPEG=1 temp.c
201-
202-
- name: Configure build tools
203-
run: |
204-
cd thirdparty/gdal
205203
git apply ../../patches/gdal_reduce_size.patch
206204
mkdir -p build && cd build
207205
emcmake cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/dist \
@@ -246,16 +244,14 @@ jobs:
246244
path: dist/
247245
merge-multiple: true
248246

249-
- name: Trigger port loading
247+
- name: Configure build tools
250248
run: |
249+
cd thirdparty/mapserver
250+
# trigger port loading
251251
EM_DATA=$EMSDK/upstream/emscripten
252252
EM_CACHE=$EM_DATA/cache
253253
touch temp.c
254254
emcc -c -s SUPPORT_LONGJMP=wasm -s USE_ZLIB=1 -s USE_FREETYPE=1 -s USE_LIBPNG=1 -s USE_LIBJPEG=1 temp.c
255-
256-
- name: Configure build tools
257-
run: |
258-
cd thirdparty/mapserver
259255
mkdir -p build && cd build
260256
emcmake cmake -DCMAKE_BUILD_TYPE=Release -DWITH_FRIBIDI=OFF -DWITH_HARFBUZZ=OFF -DWITH_ICONV=OFF -DWITH_CAIRO=OFF -DWITH_FCGI=OFF \
261257
-DWITH_POSTGIS=OFF -DWITH_WCS=OFF -DWITH_GIF=OFF -DWITH_PROTOBUFC=OFF -DCMAKE_C_FLAGS="-s SUPPORT_LONGJMP=wasm" \

0 commit comments

Comments
 (0)