Skip to content

Commit

Permalink
chore: build using commit rather than branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Nov 3, 2023
1 parent 41a0e14 commit 09e6902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ RUN ninja && ninja install
# Clone SWI-Prolog. Only make a shallow clone and only clone the
# submodules we need at depth 1.
WORKDIR /
ARG SWIPL_VERSION
RUN git clone --depth 1 https://github.com/SWI-Prolog/swipl-devel --branch V$SWIPL_VERSION
ARG SWIPL_COMMIT
RUN git clone https://github.com/SWI-Prolog/swipl-devel
RUN git checkout $SWIPL_COMMIT
RUN cd swipl-devel && git submodule update --init --depth 1 -j 100 \
packages/chr packages/clib packages/clpqr packages/http packages/nlp \
packages/pcre packages/plunit packages/sgml packages/RDF \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dist/**/*.wasm"
],
"scripts": {
"build:wasm-docker:build": "docker build --build-arg SWIPL_VERSION=$npm_package_config_swipl_version --build-arg EMSDK_VERSION=$npm_package_config_emsdk_version --build-arg ZLIB_VERSION=$npm_package_config_zlib_version --build-arg PCRE2_NAME=$npm_package_config_pcre2_name -t swipl-wasm-image docker",
"build:wasm-docker:build": "docker build --build-arg SWIPL_VERSION=$npm_package_config_swipl_version SWIPL_COMMIT=$npm_package_config_swipl_commit --build-arg EMSDK_VERSION=$npm_package_config_emsdk_version --build-arg ZLIB_VERSION=$npm_package_config_zlib_version --build-arg PCRE2_NAME=$npm_package_config_pcre2_name -t swipl-wasm-image docker",
"build:wasm-docker:create": "docker create --name swipl-wasm swipl-wasm-image",
"build:wasm-docker:remove": "docker rm swipl-wasm",
"build:wasm-docker:extract:data": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-web.data dist/swipl/swipl-web.data",
Expand Down

0 comments on commit 09e6902

Please sign in to comment.