Skip to content

Commit

Permalink
switch to emsdk 3.1.35 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
farzonl authored Apr 23, 2023
1 parent 6218828 commit 1635d2c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/emscripten-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
./emsdk install 3.1.35
./emsdk activate 3.1.35
source ./emsdk_env.sh
emcc -v
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile.emscripten
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt install -y --no-install-recommends \
python3 git openssl ca-certificates xz-utils \
bzip2 cmake make

# Set the working directory to root (ie $HOME)
WORKDIR root

COPY test test
COPY fuzz fuzz
COPY CMakeLists.txt CMakeLists.txt
COPY scripts scripts
COPY src src

RUN git clone https://github.com/emscripten-core/emsdk.git

SHELL ["/bin/bash", "-c"]
# install tool
RUN cd emsdk \
&& ./emsdk install 3.1.35 \
&& ./emsdk activate 3.1.35 \
&& source ./emsdk_env.sh \
&& emcc -v

#Setup cmake
RUN source ./emsdk/emsdk_env.sh \
&& emcmake cmake -DBuildTest=TRUE -B build .

# build with make
RUN source ./emsdk/emsdk_env.sh \
&& emmake make -C build

0 comments on commit 1635d2c

Please sign in to comment.