Skip to content
Snippets Groups Projects
Verified Commit 1a6a56f1 authored by Konrad Botor's avatar Konrad Botor
Browse files

Updated Emscripten CI build to additionally tag it with commit SHA - ref. !12

parent f1ae6137
No related branches found
No related tags found
1 merge request!12Dockerfile definition and helper scripts related to preparing a toolchain image able to produce WASM binaries
Pipeline #71287 passed
......@@ -6,7 +6,7 @@ This project contains the common CI templates and scripts for Hive and Hive-rela
- misc - miscellaneous files
- scripts/bash - Bash scripts
- scripts/emscripten - source for emsdk image
- scripts/bash/emscripten - source for emsdk image
- scripts/python - Python scripts
- templates - GitLab CI templates
......
......@@ -77,7 +77,7 @@ target "tox-test-runner" {
target "emsdk" {
dockerfile = "Dockerfile.emscripten"
tags = [ notempty(CI_REGISTRY_IMAGE) ? "${CI_REGISTRY_IMAGE}/emsdk:${EMSCRIPTEN_VERSION}" : "emsdk:${EMSCRIPTEN_VERSION}" ]
tags = generate-tags("emsdk", "${EMSCRIPTEN_VERSION}")
cache-from = generate-cache-from("emsdk", "${EMSCRIPTEN_VERSION}")
cache-to = generate-cache-to("emsdk", "${EMSCRIPTEN_VERSION}")
args = {
......
......@@ -11,5 +11,5 @@ export DOCKER_BUILDKIT=1
docker build --target=emscripten_builder \
--build-arg "EMSCRIPTEN_VERSION=${EMSDK_VERSION}" \
-t "${REGISTRY}emsdk:3.1.43" \
-f "${SRCDIR}/Dockerfile.emscripten" "${SRCDIR}"
--tag "${REGISTRY}emsdk:3.1.43" \
--file "${SRCDIR}/Dockerfile.emscripten" "${SRCDIR}"
#! /bin/bash
echo "Building Boost..."
set -xeuo pipefail
TMP_SRC=${1:?"Missing arg #1 to specify source temp directory"}
......@@ -44,3 +46,5 @@ printf "using clang : emscripten : emcc -s USE_ZLIB=1 -s USE_ICU=0 : <archiver>e
--with-regex \
--with-system \
install
echo "Boost build finished."
\ No newline at end of file
#! /bin/bash
echo "Building OpenSSL..."
set -xeuo pipefail
TMP_SRC=${1:?"Missing arg #1 to specify source temp directory"}
......@@ -28,3 +30,4 @@ sed -i 's/$(CROSS_COMPILE)//' Makefile
emmake make -j 8
emmake make install
echo "OpenSSL build finished."
\ No newline at end of file
#! /bin/bash
echo "Building secp256k1-zkp..."
set -xeuo pipefail
TMP_SRC=${1:?"Missing arg #1 to specify source temp directory"}
......@@ -26,3 +28,5 @@ emconfigure ./configure --prefix="${INSTALL_PREFIX}" \
--enable-experimental
emmake make
emmake make install
echo "Secp256k1-zkp build finished."
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment