Skip to content

Commit

Permalink
install emcc directly from emscripten package manager without compili…
Browse files Browse the repository at this point in the history
…ng manually
  • Loading branch information
BaseMax committed Dec 25, 2024
1 parent 6c8f523 commit 30637ca
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions .github/workflows/web-assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,19 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Emscripten SDK
uses: actions/cache@v4
with:
path: emsdk
key: ${{ runner.os }}-emsdk-${{ hashFiles('emsdk/.emscripten') }}
restore-keys: |
${{ runner.os }}-emsdk-
- name: Install Emscripten (if not cached)
- name: Update OS
run: |
if [ ! -d "emsdk" ]; then
git clone https://github.com/emscripten-core/emsdk.git
fi
cd emsdk
./emsdk install latest
./emsdk activate latest
sudo DEBIAN_FRONTEND=noninteractive apt-get update
- name: Install Emscripten
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install emscripten
- name: Install Node.js and npx
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs npm
npx --version
- name: Cache apt package manager's archives
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-cache-${{ hashFiles('**/apt-packages-list.txt') }}
restore-keys: |
${{ runner.os }}-apt-cache-
- name: Source Emscripten environment
run: |
echo "EMSDK=/home/runner/work/Salam/Salam/emsdk" >> $GITHUB_ENV
echo "PATH=$PATH:/home/runner/work/Salam/Salam/emsdk:/home/runner/work/Salam/Salam/emsdk/upstream/emscripten" >> $GITHUB_ENV
- name: Run WebAssembly build script
run: |
chmod +x emsdk/emsdk_env.sh
source emsdk/emsdk_env.sh
chmod +x build-webassembly.sh
bash build-webassembly.sh
- name: Clone Salam-Editor repository
Expand Down

0 comments on commit 30637ca

Please sign in to comment.