Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 44f5464

Browse files
committed
CI update
1 parent d0d0248 commit 44f5464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/export-wws.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ on:
33
workflow_dispatch:
44
push:
55
branches: [ "main" ]
6-
76
jobs:
87
build:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
11+
- uses: mymindstorm/setup-emsdk@v14
1212
- name: build
1313
run: |
14-
clang --target=wasm32 -O3 -flto -nostdlib -Wl,--no-entry -Wl,--export-all -Wl,--lto-O3 -o script.wasm script.c
14+
emcc -O3 --no-entry -s WASM=1 -s ENVIRONMENT=web -s ERROR_ON_UNDEFINED_SYMBOLS=0 script.c -o script.wasm
1515
- name: export
1616
run: |
1717
curl -F "data=@./script.wasm" "https://www.d1ag0n.com/api/Wasm/Upload/${{secrets.API_UPLOAD_KEY}}"

0 commit comments

Comments
 (0)