Skip to content

Commit d65b8a2

Browse files
committed
chore: add more actions (wasm compilation and jest run)
1 parent 111794b commit d65b8a2

File tree

1 file changed

+63
-2
lines changed

1 file changed

+63
-2
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ jobs:
266266
267267
- name: Start compilation
268268
run: |
269-
cd thirdparty/mapserver
269+
cd thirdparty/mapserver/build
270270
emmake make mapserver -j$(nproc) # build mapserver.a target only
271271
272272
- name: Install artifacts
273273
run: |
274-
cd thirdparty/mapserver
274+
cd thirdparty/mapserver/build
275275
cp libmapserver.a $GITHUB_WORKSPACE/dist/lib
276276
cp *.h $GITHUB_WORKSPACE/dist/include
277277
cp ../*.h $GITHUB_WORKSPACE/dist/include
@@ -284,3 +284,64 @@ jobs:
284284
if-no-files-found: error
285285
retention-days: 1
286286
overwrite: true
287+
288+
WASM:
289+
needs: [MapServer]
290+
timeout-minutes: 10
291+
runs-on: ubuntu-24.04
292+
steps:
293+
- name: Checkout repository and submodules
294+
uses: actions/[email protected]
295+
with:
296+
submodules: recursive
297+
298+
- name: Prepare build environemnt
299+
uses: ./.github/actions/prepare-build-env
300+
301+
- name: Restore previous build artifacts
302+
uses: actions/[email protected]
303+
with:
304+
name: MapServer
305+
path: dist/
306+
307+
- name: Install required tools
308+
run: sudo apt-get update && sudo apt-get install -y brotli
309+
310+
- name: Start compilation
311+
run: emmake make
312+
313+
- name: Upload build artifacts
314+
uses: actions/[email protected]
315+
with:
316+
name: WASM
317+
path: |
318+
dist/mapserver.*
319+
dist/mapserver-node.js
320+
if-no-files-found: error
321+
retention-days: 1
322+
overwrite: true
323+
324+
Jest:
325+
needs: [WASM]
326+
timeout-minutes: 10
327+
runs-on: ubuntu-24.04
328+
steps:
329+
- name: Checkout repository and submodules
330+
uses: actions/[email protected]
331+
with:
332+
submodules: recursive
333+
334+
- name: Prepare build environemnt
335+
uses: ./.github/actions/prepare-build-env
336+
337+
- name: Restore previous build artifacts
338+
uses: actions/[email protected]
339+
with:
340+
name: WASM
341+
path: dist/
342+
343+
- name: Install npm dependencies
344+
run: npm ci
345+
346+
- name: Run jest tests
347+
run: npm test -- --ci --reporters=default --reporters=jest-junit --noStackTrace

0 commit comments

Comments
 (0)