Skip to content

Commit 2fd345c

Browse files
authored
Taskfile: Exclude emsdk caches from checksums. (y-scope#3)
1 parent 018a274 commit 2fd345c

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ You can use GitHub issues to [request features][feature-req] or [report bugs][bu
99
* CMake 3.16 or higher
1010
* GNU Make
1111
* Python 3
12-
* [Task]
12+
* [Task] 3.38.0 or higher
1313

1414
## Setup
1515
Initialize and update submodules:

Taskfile.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ tasks:
6666
vars:
6767
CHECKSUM_FILE: "{{.CHECKSUM_FILE}}"
6868
DATA_DIR: "{{.OUTPUT_DIR}}"
69+
EXCLUDE_PATHS: &emsdk_checksum_exclude_paths
70+
- "upstream/emscripten/__pycache__"
71+
- "upstream/emscripten/cache/sanity.txt"
72+
- "upstream/emscripten/cache/symbol_lists"
73+
- "upstream/emscripten/cache/symbol_lists.lock"
74+
- "upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/lto"
75+
- "upstream/emscripten/third_party/leb128/__pycache__"
76+
- "upstream/emscripten/tools/__pycache__"
77+
- "upstream/emscripten/tools/ports/__pycache__"
78+
- "upstream/emscripten/tools/ports/contrib/__pycache__"
6979
cmds:
7080
- task: "clean-emsdk"
7181
- "git clone 'https://github.com/emscripten-core/emsdk.git' '{{.G_EMSDK_DIR}}'"
@@ -81,6 +91,7 @@ tasks:
8191
vars:
8292
DATA_DIR: "{{.OUTPUT_DIR}}"
8393
OUTPUT_FILE: "{{.CHECKSUM_FILE}}"
94+
EXCLUDE_PATHS: *emsdk_checksum_exclude_paths
8495

8596
init:
8697
internal: true

0 commit comments

Comments
 (0)