Skip to content

Commit a927b9e

Browse files
Setting USE_UNSAFE_EVAL to false
1 parent 29452a5 commit a927b9e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/emscripten.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
target: [js, wasm]
1313
env:
1414
EMSCRIPTEN_VERSION: 3.1.61
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
@@ -29,12 +29,15 @@ jobs:
2929
if: ${{ matrix.target=='js' }}
3030
working-directory: libheif
3131
run: |
32-
./scripts/run-ci.sh
32+
sed s/USE_WASM=0/USE_WASM=0\ USE_UNSAFE_EVAL=0/g ./scripts/run-ci.sh > ./scripts/run-ci-js.sh
33+
chmod +x ./scripts/run-ci-js.sh
34+
./scripts/run-ci-js.sh
35+
ls -la
3336
- name: Run build and tests (WASM)
3437
if: ${{ matrix.target=='wasm' }}
3538
working-directory: libheif
3639
run: |
37-
sed s/USE_WASM=0/USR_WASM=1/g ./scripts/run-ci.sh > ./scripts/run-ci-wasm.sh
40+
sed s/USE_WASM=0/USE_WASM=1\ USE_UNSAFE_EVAL=0/g ./scripts/run-ci.sh > ./scripts/run-ci-wasm.sh
3841
chmod +x ./scripts/run-ci-wasm.sh
3942
./scripts/run-ci-wasm.sh
4043
ls -la
@@ -46,7 +49,7 @@ jobs:
4649
name: ${{ matrix.target }}
4750
path: dist
4851
release:
49-
runs-on: ubuntu-20.04
52+
runs-on: ubuntu-24.04
5053
needs: [emscripten]
5154
steps:
5255
- name: Download build artifacts

0 commit comments

Comments
 (0)