Skip to content

Commit

Permalink
chore: add build docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhirn committed Nov 5, 2024
1 parent 779f5dc commit 576c98c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -eu
# - Compiler settings see https://emscripten.org/docs/tools_reference/settings_reference.html
# - Clang CLI flags see https://clang.llvm.org/docs/ClangCommandLineReference.html#webassembly
emcc -std=c89 -Wall -Wextra -Werror -Wno-type-limits \
-O3 -flto -msimd128 -msse4.2 -mavx \
-O3 -flto -msimd128 -mavx \
--no-entry \
-sSTRICT \
-sWASM_BIGINT \
Expand Down
10 changes: 10 additions & 0 deletions build_docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
set -eu

VERSION=3.1.71@sha256:9922c93314b63a1d9ceba2e76f03737f1f9cc4b7350341211e2d3555633ffdd5

docker run -it --rm \
--workdir /workdir \
-v .:/workdir \
emscripten/emsdk:${VERSION} \
./build.sh
9 changes: 9 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@
"enabled": true
},
"postUpdateOptions": ["pnpmDedupe"],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^build_docker\\.sh$"],
"matchStrings": ["VERSION=(?<currentValue>[^@\\s]+)(@(?<currentDigest>[^\\s]+))?"],
"packageNameTemplate": "emscripten/emsdk",
"datasourceTemplate": "docker"
}
],
"packageRules": [
{ "matchDepNames": ["node", "@types/node"], "ignoreUnstable": false },
{
Expand Down

0 comments on commit 576c98c

Please sign in to comment.