Skip to content

Merge pull request #109 from tseykovets/windows_installer #104

Merge pull request #109 from tseykovets/windows_installer

Merge pull request #109 from tseykovets/windows_installer #104

Workflow file for this run

name: Emscripten version
on:
push:
branches: [master]
workflow_dispatch:
env:
emsdk_ver: 3.1.49
jobs:
build:
name: Emscripten version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Cache emsdk
id: cache-emsdk
uses: actions/cache@v3
with:
path: emsdk
key: ${{ runner.os }}-${{ env.emsdk_ver }}
- name: Install Packages
run: |
sudo apt-get update -qq
sudo apt-get install -y git
- if: ${{ steps.cache-emsdk.outputs.cache-hit != 'true' }}
name: Prep
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install ${{ env.emsdk_ver }}
./emsdk activate ${{ env.emsdk_ver }}
mkdir env
- name: Build
run: |
cd emsdk
export WORKSPACE="${{github.workspace}}/emsdk/env"
../contrib/instead-em-build.sh
- name: Create Artifact
run: |
cd emsdk
mkdir -p ../release/instead-em
cp env/instead-em-js/instead-em.* ../release/instead-em
cp -f env/instead-em-js/instead.html ../release/instead-em/instead-em.html
cp env/instead-em-js/load* ../release/instead-em
cp env/instead-em-js/*.svg ../release/instead-em
- name: Publish Artifact
uses: actions/upload-artifact@v3
with:
name: instead-em
path: release
retention-days: 1