-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.gitlab-ci.yml
29 lines (25 loc) · 944 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pages:
rules:
# Run on all tags (but only on tags)
- if: "$CI_COMMIT_TAG"
when: always
image: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/emscripten-build-env
cache:
paths:
- Linux/build.emscripten
script:
- meson setup --reconfigure --cross-file wasm/wasm32-emscripten.meson-cross-build-definition.txt -Dbuildtype=release -Db_sanitize=none -Dmovies=false Linux/build.emscripten .
- cd Linux/build.emscripten
- export EM_CACHE=$(pwd)/cache
# The docker image has no /tmp dir
# https://github.com/llvm/llvm-project/blob/b530eeea5e7697d58af2adac66c8b86c79e649bb/llvm/lib/Support/Unix/Path.inc#L1427
- export TMP=$(pwd)
- meson compile
- mkdir ../../public
- cp -r *.wasm* *.js *.html *.data ../../public
# https://github.com/gzuidhof/coi-serviceworker
- cp ../../wasm/coi-serviceworker.min.js ../../public
publish: public
artifacts:
paths:
- public