-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathclp-ffi-js.yaml
More file actions
54 lines (47 loc) · 1.93 KB
/
clp-ffi-js.yaml
File metadata and controls
54 lines (47 loc) · 1.93 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
includes:
yscope-dev-utils: "../../tools/yscope-dev-utils/exports/taskfiles/utils/utils.yaml"
vars:
G_CLP_FFI_JS_SRC_DIR: "{{.G_BUILD_DIR}}/clp-ffi-js"
G_CLP_FFI_JS_BUILD_DIR: "{{.G_CLP_FFI_JS_SRC_DIR}}/build/clp-ffi-js"
G_CLP_FFI_JS_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/clp-ffi-js.md5"
# NOTE: By default, clp-ffi-js builds its WASM binaries against the internally pinned CLP source.
# For CLP development and integration testing, we override `CLP_FFI_JS_CLP_SOURCE_DIRECTORY` so the
# build uses the CLP repository in the current workspace.
# We achieve this by running an early, intentionally non-fatal CMake configure step to inject the
# cache variable without triggering a full build. The normal clp-ffi-js test workflow is then
# executed, which builds the package as part of the process.
tasks:
default:
deps: ["download-src"]
dir: "{{.G_CLP_FFI_JS_SRC_DIR}}"
cmds:
- task: "inject-clp-src-dir"
- task: "symlink-yscope-dev-utils"
- |-
task test
download-src:
deps:
- "::init"
cmds:
- task: "yscope-dev-utils:remote:download-and-extract-tar"
vars:
CHECKSUM_FILE: "{{.G_CLP_FFI_JS_CHECKSUM_FILE}}"
FILE_SHA256: "5ab1c27031caafb014198d4db711a71b3fbb1661b396bcd4e46764194e2b1f61"
OUTPUT_DIR: "{{.G_BUILD_DIR}}/clp-ffi-js"
TAR_FILE: "{{.G_BUILD_DIR}}/clp-ffi-js.tar.gz"
URL: "https://github.com/y-scope/clp-ffi-js/archive/4cc6a7c.tar.gz"
inject-clp-src-dir:
internal: true
silent: true
cmds:
- |-
cmake -S "{{.G_CLP_FFI_JS_SRC_DIR}}" -B "{{.G_CLP_FFI_JS_BUILD_DIR}}" \
-DCLP_FFI_JS_CLP_SOURCE_DIRECTORY="{{.ROOT_DIR}}" >/dev/null 2>&1 || true
symlink-yscope-dev-utils:
internal: true
cmds:
- |-
rm -rf "{{.G_CLP_FFI_JS_SRC_DIR}}/tools/yscope-dev-utils"
ln -s "{{.ROOT_DIR}}/tools/yscope-dev-utils" \
"{{.G_CLP_FFI_JS_SRC_DIR}}/tools/yscope-dev-utils"