Skip to content

Commit

Permalink
updated emscripten singularity scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
veggiesaurus committed Mar 4, 2021
1 parent 6653343 commit ae4d757
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build_wasm_libs_singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ if [ $VERSION == "3" ]; then
if [ -d "./emscripten.simg" ]; then
echo "Using existing singularity container"
else
singularity build --sandbox emscripten.simg docker://trzeci/emscripten:1.39.18-upstream
singularity build --sandbox emscripten.simg docker://emscripten/emsdk:2.0.14
fi
singularity exec --writable emscripten.simg npm run build-libs
else
if singularity check emscripten-1.39.18-upstream.simg ; then
if singularity check emsdk-2.0.14.simg ; then
echo "Using existing singularity container"
else
singularity pull docker://trzeci/emscripten:1.39.18-upstream
singularity pull docker://emscripten/emsdk:2.0.14
fi
echo "Building WebAssembly libraries using singularity"
singularity exec emscripten-1.39.18-upstream.simg npm run build-libs
singularity exec emsdk-2.0.14.simg npm run build-libs
fi

8 changes: 4 additions & 4 deletions build_wasm_wrappers_singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ if [ $VERSION == "3" ]; then
if [ -d "./emscripten.simg" ]; then
echo "Using existing singularity container"
else
singularity build --sandbox emscripten.simg docker://trzeci/emscripten:1.39.18-upstream
singularity build --sandbox emscripten.simg docker://emscripten/emsdk:2.0.14
fi
singularity exec --writable emscripten.simg npm run build-wrappers
else
if singularity check emscripten-1.39.18-upstream.simg ; then
if singularity check emsdk-2.0.14.simg ; then
echo "Using existing singularity container"
else
singularity pull docker://trzeci/emscripten:1.39.18-upstream
singularity pull docker://emscripten/emsdk:2.0.14
fi
echo "Building WebAssembly wrappers using singularity"
singularity exec emscripten-1.39.18-upstream.simg npm run build-wrappers
singularity exec emsdk-2.0.14.simg npm run build-wrappers
fi

0 comments on commit ae4d757

Please sign in to comment.