diff --git a/.buildkite/emscripten.yml b/.buildkite/emscripten.yml index e9a9bde78..69640f4f1 100644 --- a/.buildkite/emscripten.yml +++ b/.buildkite/emscripten.yml @@ -1,10 +1,18 @@ steps: - label: 'Emscripten build' command: + - 'apt update && apt install -y autoconf libtool build-essential cmake git' - 'cd web' - - 'nix develop --accept-flake-config --command yarn build-db-wasm' - - 'git diff --exit-code' + - 'BEFORE_HASH=$(sha256sum ./database/_generated/comm_query_executor.wasm)' + - './scripts/run_emscripten.sh' + - 'AFTER_HASH=$(sha256sum ./database/_generated/comm_query_executor.wasm)' + - '[[ "$BEFORE_HASH" == "$AFTER_HASH" ]] || exit 1' retry: automatic: true + plugins: + - docker#v5.3.0: + image: 'emscripten/emsdk:3.1.17' + propagate-environment: true + shell: ['/bin/bash', '-e', '-c'] agents: - - 'mac=true' + - 'autoscaling=true'