Skip to content

Commit

Permalink
Use emsdk's install script rather than cloning a specific release. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkrodrigues authored Oct 1, 2024
1 parent d8fac7b commit d19be4a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ tasks:
emsdk:
vars:
CHECKSUM_FILE: "{{.G_EMSDK_CHECKSUM}}"
# Lock emsdk to version 3.1.67 to work around issue #6.
EMSDK_VERSION: "3.1.67"
OUTPUT_DIR: "{{.G_EMSDK_DIR}}"
sources: ["{{.TASKFILE}}"]
generates: ["{{.CHECKSUM_FILE}}"]
Expand All @@ -81,18 +83,11 @@ tasks:
- "upstream/emscripten/tools/ports/contrib/__pycache__"
cmds:
- task: "clean-emsdk"
# emsdk is locked to version 3.1.67 to work around issue #6.
- >-
git clone
https://github.com/emscripten-core/emsdk.git
--branch 3.1.67
--depth 1
--shallow-submodules
"{{.G_EMSDK_DIR}}"
- "git clone https://github.com/emscripten-core/emsdk.git '{{.G_EMSDK_DIR}}'"
- |-
cd "{{.G_EMSDK_DIR}}"
./emsdk install latest
./emsdk activate latest
./emsdk install {{.EMSDK_VERSION}}
./emsdk activate {{.EMSDK_VERSION}}
- |-
cd "{{.G_EMSDK_DIR}}/upstream/emscripten"
PATH=$(echo {{.G_EMSDK_DIR}}/node/*/bin):$PATH npm install
Expand Down

0 comments on commit d19be4a

Please sign in to comment.