Skip to content

Commit 4cea9f4

Browse files
authored
Merge pull request #105 from launchql/feat/wasm17
Feat/wasm17
2 parents dafa999 + 08049fe commit 4cea9f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+5088
-5550
lines changed

β€Ž.github/workflows/build-dry-run-no-win.ymlβ€Ž

Lines changed: 0 additions & 131 deletions
This file was deleted.

β€Ž.github/workflows/build-dry-run.ymlβ€Ž

Lines changed: 0 additions & 59 deletions
This file was deleted.

β€Ž.github/workflows/build-supabase-artifacts.ymlβ€Ž

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build Wasm πŸ› 
2+
'on':
3+
workflow_dispatch: null
4+
jobs:
5+
build-wasm:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout Repository πŸ“₯
9+
uses: actions/checkout@v4
10+
- name: Setup Node.js 🌐
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: 20.x
14+
cache: yarn
15+
- name: Install and Build πŸš€
16+
run: |
17+
yarn
18+
- name: Install Emscripten ✍🏻
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install cmake python3 python3-pip
22+
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
23+
cd emsdk
24+
./emsdk install 3.1.59
25+
./emsdk activate 3.1.59
26+
source ./emsdk_env.sh
27+
- name: Build with Emscripten πŸ—
28+
run: |
29+
source ./emsdk/emsdk_env.sh
30+
emmake make
31+
emmake make build
32+
- name: Archive production artifacts πŸ›
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: wasm-artifacts
36+
path: wasm

β€Ž.github/workflows/build-wasm.ymlβ€Ž

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,15 @@ jobs:
1616
node-version: '20.x'
1717
cache: 'yarn'
1818

19-
- name: Install and Build πŸš€
20-
run: |
21-
yarn
19+
- name: Install Dependencies 🧢
20+
run: yarn install
2221

23-
- name: Install Emscripten ✍🏻
24-
run: |
25-
sudo apt-get update
26-
sudo apt-get install cmake python3 python3-pip
27-
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
28-
cd emsdk
29-
./emsdk install 3.1.59
30-
./emsdk activate 3.1.59
31-
source ./emsdk_env.sh
32-
33-
- name: Build with Emscripten πŸ—
34-
run: |
35-
source ./emsdk/emsdk_env.sh
36-
emmake make
37-
emmake make build
22+
- name: Build WASM πŸ—
23+
run: npm run wasm:build
3824

3925
- name: Archive production artifacts πŸ›
4026
uses: actions/upload-artifact@v4
4127
with:
42-
name: compiled-files
43-
path: wasm
28+
name: wasm-artifacts
29+
path: wasm/
30+
retention-days: 7

0 commit comments

Comments
Β (0)