File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
.github/actions/prepare-build-env Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 99 run : |
1010 git clone https://github.com/emscripten-core/emsdk.git
1111 cd emsdk
12- ./emsdk install 3.1.74
13- ./emsdk activate 3.1.74
12+ ./emsdk install 3.1.72
13+ ./emsdk activate 3.1.72
1414 source ./emsdk_env.sh
1515 # Export emsdk environment variables
1616 echo "PATH=$PATH" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ git pull --recurse-submodules
107107
108108Start the build container with the following command to ensure the filesystem permissions for newly created files are correct.
109109``` sh
110- docker run -it --rm -v $( pwd) :/src -v /etc/passwd:/etc/passwd --user " $( id -u) :$( id -g) " --name mapserver-wasm emscripten/emsdk:3.1.74 bash
110+ docker run -it --rm -v $( pwd) :/src -v /etc/passwd:/etc/passwd --user " $( id -u) :$( id -g) " --name mapserver-wasm emscripten/emsdk:3.1.72 bash
111111```
112112And execute in a second terminal the following command to install the missing build depedencies as root user.
113113``` sh
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import fs from 'fs'
22
33const THRESHOLD = 10240
44
5- test ( 'mapserver.wasm file should not be larger than ~2.9MB with brotli compression' , ( ) => {
5+ test ( 'mapserver.wasm file should not be larger than ~3.1MB with brotli compression' , ( ) => {
66 const stats = fs . statSync ( './dist/mapserver.wasm.br' )
77
8- expect ( stats . size ) . toBeLessThanOrEqual ( 2988783 + THRESHOLD ) // we should avoid getting bigger than that
8+ expect ( stats . size ) . toBeLessThanOrEqual ( 3045550 + THRESHOLD ) // we should avoid getting bigger than that
99 expect ( stats . size ) . toBeGreaterThan ( 2000000 ) // if we got to small, maybe something is wrong?
1010} )
You can’t perform that action at this time.
0 commit comments