-
Notifications
You must be signed in to change notification settings - Fork 11
build(taskfile): Bump emsdk version to 4.0.23; Extract emsdk and node-modules into sub-taskfiles; Change default task to package.
#139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
00c168e
c8a8cf5
1618955
d9954c8
5e4dd71
e8bdae7
3b517e0
eb35c7f
35a02d1
730255b
dfc66e0
432710e
b823ebe
68efcf9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| version: "3" | ||
|
|
||
| vars: | ||
| G_EMSDK_DIR: "{{.G_BUILD_DIR}}/emsdk" | ||
|
|
||
| G_EMSCRIPTEN_CMAKE_TOOLCHAIN_FILE: >- | ||
| {{.G_EMSDK_DIR}}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake | ||
| G_EMSDK_CHECKSUM: "{{.G_BUILD_DIR}}/emsdk.md5" | ||
|
|
||
| tasks: | ||
| default: | ||
| vars: | ||
| CHECKSUM_FILE: "{{.G_EMSDK_CHECKSUM}}" | ||
| EMSDK_VERSION: "4.0.10" | ||
| OUTPUT_DIR: "{{.G_EMSDK_DIR}}" | ||
| sources: ["{{.TASKFILE}}"] | ||
| generates: ["{{.CHECKSUM_FILE}}"] | ||
| run: "once" | ||
| deps: | ||
| - "::init" | ||
| - task: "::utils:checksum:validate" | ||
|
||
| vars: | ||
| CHECKSUM_FILE: "{{.CHECKSUM_FILE}}" | ||
| EXCLUDE_PATTERNS: &emsdk_checksum_exclude_paths | ||
| - "upstream/emscripten/__pycache__" | ||
| - "upstream/emscripten/cache/sanity.txt" | ||
| - "upstream/emscripten/cache/symbol_lists" | ||
| - "upstream/emscripten/cache/symbol_lists.lock" | ||
| - "upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/lto" | ||
| - "upstream/emscripten/third_party/leb128/__pycache__" | ||
| - "upstream/emscripten/tools/__pycache__" | ||
| - "upstream/emscripten/tools/ports/__pycache__" | ||
| - "upstream/emscripten/tools/ports/contrib/__pycache__" | ||
| INCLUDE_PATTERNS: ["{{.OUTPUT_DIR}}"] | ||
| cmds: | ||
| - "rm -rf '{{.G_EMSDK_DIR}}'" | ||
| - "git clone https://github.com/emscripten-core/emsdk.git '{{.G_EMSDK_DIR}}'" | ||
| - |- | ||
| cd "{{.G_EMSDK_DIR}}" | ||
| ./emsdk install {{.EMSDK_VERSION}} | ||
| ./emsdk activate {{.EMSDK_VERSION}} | ||
| - |- | ||
| cd "{{.G_EMSDK_DIR}}/upstream/emscripten" | ||
| PATH=$(echo {{.G_EMSDK_DIR}}/node/*/bin):$PATH npm install | ||
| # This command must be last | ||
| - task: "::utils:checksum:compute" | ||
| vars: | ||
| CHECKSUM_FILE: "{{.CHECKSUM_FILE}}" | ||
| EXCLUDE_PATTERNS: *emsdk_checksum_exclude_paths | ||
| INCLUDE_PATTERNS: ["{{.OUTPUT_DIR}}"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| version: "3" | ||
|
|
||
| tasks: | ||
| default: | ||
| sources: | ||
| - "{{.ROOT_DIR}}/package.json" | ||
| - "{{.ROOT_DIR}}/package-lock.json" | ||
| - "{{.TASKFILE}}" | ||
| generates: | ||
| - "{{.ROOT_DIR}}/node_modules/**/*" | ||
| run: "once" | ||
| cmds: | ||
| - "npm clean-install" |
Uh oh!
There was an error while loading. Please reload this page.