-
Notifications
You must be signed in to change notification settings - Fork 31
56 lines (51 loc) Β· 1.59 KB
/
build-wasm-no-docker.yaml
File metadata and controls
56 lines (51 loc) Β· 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Build Wasm No Docker π
'on':
workflow_dispatch: null
jobs:
build-wasm-no-docker:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository π₯
uses: actions/checkout@v4
- name: Setup Node.js π
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Setup pnpm π¦
uses: pnpm/action-setup@v2
with:
version: 8.15.0
- name: Get pnpm store directory π
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache ποΈ
uses: actions/cache@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies π§Ά
run: pnpm install
- name: Install Emscripten βπ»
run: |
sudo apt-get update
sudo apt-get install cmake python3 python3-pip
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.59
./emsdk activate 3.1.59
source ./emsdk_env.sh
working-directory: full
- name: Build with Emscripten π
run: |
source ./emsdk/emsdk_env.sh
emmake make
emmake make build
working-directory: full
- name: Archive production artifacts π
uses: actions/upload-artifact@v4
with:
name: wasm-artifacts
path: full/wasm