@zappdev/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -0
- package/dist/zapp-cli.js +9471 -0
- package/native/src/app/app.zc +490 -0
- package/native/src/event/event.zc +24 -0
- package/native/src/event/events.zc +70 -0
- package/native/src/platform/darwin/backend.zc +923 -0
- package/native/src/platform/darwin/backend_bootstrap.zc +9 -0
- package/native/src/platform/darwin/bootstrap.zc +9 -0
- package/native/src/platform/darwin/engine_jsc.zc +86 -0
- package/native/src/platform/darwin/engine_qjs.zc +92 -0
- package/native/src/platform/darwin/platform.zc +156 -0
- package/native/src/platform/darwin/webview.zc +550 -0
- package/native/src/platform/darwin/webview_bootstrap.zc +9 -0
- package/native/src/platform/darwin/window.zc +1223 -0
- package/native/src/platform/darwin/worker/common.zc +223 -0
- package/native/src/platform/darwin/worker/core/base64_core.zc +29 -0
- package/native/src/platform/darwin/worker/core/crypto_core.zc +19 -0
- package/native/src/platform/darwin/worker/core/encoding_core.zc +32 -0
- package/native/src/platform/darwin/worker/core/fetch_core.zc +145 -0
- package/native/src/platform/darwin/worker/core/url_core.zc +69 -0
- package/native/src/platform/darwin/worker/core/websocket_core.zc +179 -0
- package/native/src/platform/darwin/worker/dispatch.zc +55 -0
- package/native/src/platform/darwin/worker/jsc/base64_jsc.zc +39 -0
- package/native/src/platform/darwin/worker/jsc/crypto_jsc.zc +49 -0
- package/native/src/platform/darwin/worker/jsc/encoding_jsc.zc +86 -0
- package/native/src/platform/darwin/worker/jsc/fetch_jsc.zc +149 -0
- package/native/src/platform/darwin/worker/jsc/url_jsc.zc +54 -0
- package/native/src/platform/darwin/worker/jsc/websocket_jsc.zc +127 -0
- package/native/src/platform/darwin/worker/jsc.zc +670 -0
- package/native/src/platform/darwin/worker/mod.zc +30 -0
- package/native/src/platform/darwin/worker/qjs/fetch_qjs.zc +233 -0
- package/native/src/platform/darwin/worker/qjs/qjs_macros.zc +23 -0
- package/native/src/platform/darwin/worker/qjs/websocket_qjs.zc +223 -0
- package/native/src/platform/darwin/worker/qjs.zc +1053 -0
- package/native/src/platform/darwin/worker/timers.zc +149 -0
- package/native/src/platform/darwin/worker/timers_qjs.zc +209 -0
- package/native/src/platform/platform.zc +64 -0
- package/native/src/platform/shared/log.zc +156 -0
- package/native/src/platform/shared/worker/qjs/base64_qjs.zc +38 -0
- package/native/src/platform/shared/worker/qjs/crypto_qjs.zc +44 -0
- package/native/src/platform/shared/worker/qjs/encoding_qjs.zc +95 -0
- package/native/src/platform/shared/worker/qjs/url_qjs.zc +65 -0
- package/native/src/platform/shared/worker_registry.zc +206 -0
- package/native/src/platform/window.zc +446 -0
- package/native/src/platform/windows/backend.zc +452 -0
- package/native/src/platform/windows/backend_bootstrap.zc +9 -0
- package/native/src/platform/windows/bootstrap.zc +9 -0
- package/native/src/platform/windows/engine_qjs.zc +60 -0
- package/native/src/platform/windows/platform.zc +387 -0
- package/native/src/platform/windows/webview.zc +1175 -0
- package/native/src/platform/windows/webview_bootstrap.zc +9 -0
- package/native/src/platform/windows/window.zc +1271 -0
- package/native/src/platform/windows/worker/common.zc +409 -0
- package/native/src/platform/windows/worker/core/base64_core.zc +52 -0
- package/native/src/platform/windows/worker/core/crypto_core.zc +34 -0
- package/native/src/platform/windows/worker/core/encoding_core.zc +60 -0
- package/native/src/platform/windows/worker/core/fetch_core.zc +274 -0
- package/native/src/platform/windows/worker/core/url_core.zc +216 -0
- package/native/src/platform/windows/worker/core/websocket_core.zc +343 -0
- package/native/src/platform/windows/worker/dispatch.zc +34 -0
- package/native/src/platform/windows/worker/mod.zc +46 -0
- package/native/src/platform/windows/worker/qjs/fetch_qjs.zc +255 -0
- package/native/src/platform/windows/worker/qjs/websocket_qjs.zc +263 -0
- package/native/src/platform/windows/worker/qjs.zc +1049 -0
- package/native/src/platform/windows/worker/timers_qjs.zc +288 -0
- package/native/src/platform/worker.zc +8 -0
- package/native/src/service/service.zc +228 -0
- package/native/vendor/quickjs-ng/.gitattributes +4 -0
- package/native/vendor/quickjs-ng/.github/dependabot.yml +7 -0
- package/native/vendor/quickjs-ng/.github/workflows/ci.yml +812 -0
- package/native/vendor/quickjs-ng/.github/workflows/docs.yml +49 -0
- package/native/vendor/quickjs-ng/.github/workflows/release.yml +162 -0
- package/native/vendor/quickjs-ng/.github/workflows/test-docs.yml +23 -0
- package/native/vendor/quickjs-ng/.github/workflows/tsan.yml +32 -0
- package/native/vendor/quickjs-ng/.github/workflows/valgrind.yml +33 -0
- package/native/vendor/quickjs-ng/.gitmodules +5 -0
- package/native/vendor/quickjs-ng/CMakeLists.txt +553 -0
- package/native/vendor/quickjs-ng/LICENSE +24 -0
- package/native/vendor/quickjs-ng/Makefile +149 -0
- package/native/vendor/quickjs-ng/amalgam.js +53 -0
- package/native/vendor/quickjs-ng/api-test.c +927 -0
- package/native/vendor/quickjs-ng/builtin-array-fromasync.h +119 -0
- package/native/vendor/quickjs-ng/builtin-array-fromasync.js +36 -0
- package/native/vendor/quickjs-ng/builtin-iterator-zip-keyed.h +332 -0
- package/native/vendor/quickjs-ng/builtin-iterator-zip-keyed.js +194 -0
- package/native/vendor/quickjs-ng/builtin-iterator-zip.h +337 -0
- package/native/vendor/quickjs-ng/builtin-iterator-zip.js +210 -0
- package/native/vendor/quickjs-ng/ctest.c +17 -0
- package/native/vendor/quickjs-ng/cutils.h +2013 -0
- package/native/vendor/quickjs-ng/cxxtest.cc +2 -0
- package/native/vendor/quickjs-ng/dtoa.c +1619 -0
- package/native/vendor/quickjs-ng/dtoa.h +87 -0
- package/native/vendor/quickjs-ng/examples/fib.c +67 -0
- package/native/vendor/quickjs-ng/examples/fib_module.js +10 -0
- package/native/vendor/quickjs-ng/examples/hello.js +1 -0
- package/native/vendor/quickjs-ng/examples/hello_module.js +6 -0
- package/native/vendor/quickjs-ng/examples/meson.build +17 -0
- package/native/vendor/quickjs-ng/examples/pi_bigint.js +118 -0
- package/native/vendor/quickjs-ng/examples/point.c +154 -0
- package/native/vendor/quickjs-ng/examples/test_fib.js +8 -0
- package/native/vendor/quickjs-ng/examples/test_point.js +43 -0
- package/native/vendor/quickjs-ng/fuzz.c +51 -0
- package/native/vendor/quickjs-ng/gen/function_source.c +81 -0
- package/native/vendor/quickjs-ng/gen/hello.c +53 -0
- package/native/vendor/quickjs-ng/gen/hello_module.c +106 -0
- package/native/vendor/quickjs-ng/gen/repl.c +3053 -0
- package/native/vendor/quickjs-ng/gen/standalone.c +324 -0
- package/native/vendor/quickjs-ng/gen/test_fib.c +81 -0
- package/native/vendor/quickjs-ng/libregexp-opcode.h +58 -0
- package/native/vendor/quickjs-ng/libregexp.c +2687 -0
- package/native/vendor/quickjs-ng/libregexp.h +98 -0
- package/native/vendor/quickjs-ng/libunicode-table.h +4707 -0
- package/native/vendor/quickjs-ng/libunicode.c +1746 -0
- package/native/vendor/quickjs-ng/libunicode.h +126 -0
- package/native/vendor/quickjs-ng/list.h +107 -0
- package/native/vendor/quickjs-ng/lre-test.c +73 -0
- package/native/vendor/quickjs-ng/meson.build +684 -0
- package/native/vendor/quickjs-ng/meson_options.txt +6 -0
- package/native/vendor/quickjs-ng/qjs-wasi-reactor.c +208 -0
- package/native/vendor/quickjs-ng/qjs.c +748 -0
- package/native/vendor/quickjs-ng/qjsc.c +673 -0
- package/native/vendor/quickjs-ng/quickjs-atom.h +267 -0
- package/native/vendor/quickjs-ng/quickjs-c-atomics.h +54 -0
- package/native/vendor/quickjs-ng/quickjs-libc.c +4986 -0
- package/native/vendor/quickjs-ng/quickjs-libc.h +79 -0
- package/native/vendor/quickjs-ng/quickjs-opcode.h +369 -0
- package/native/vendor/quickjs-ng/quickjs.c +60259 -0
- package/native/vendor/quickjs-ng/quickjs.h +1419 -0
- package/native/vendor/quickjs-ng/repl.js +1927 -0
- package/native/vendor/quickjs-ng/run-test262.c +2417 -0
- package/native/vendor/quickjs-ng/standalone.js +129 -0
- package/native/vendor/quickjs-ng/tests/assert.js +49 -0
- package/native/vendor/quickjs-ng/tests/bug1221.js +16 -0
- package/native/vendor/quickjs-ng/tests/bug1296.js +12 -0
- package/native/vendor/quickjs-ng/tests/bug1297.js +22 -0
- package/native/vendor/quickjs-ng/tests/bug1301.js +21 -0
- package/native/vendor/quickjs-ng/tests/bug1302.js +24 -0
- package/native/vendor/quickjs-ng/tests/bug1305.js +26 -0
- package/native/vendor/quickjs-ng/tests/bug1318.js +54 -0
- package/native/vendor/quickjs-ng/tests/bug1352.js +8 -0
- package/native/vendor/quickjs-ng/tests/bug1354.js +6 -0
- package/native/vendor/quickjs-ng/tests/bug1355.js +58 -0
- package/native/vendor/quickjs-ng/tests/bug1368.js +9 -0
- package/native/vendor/quickjs-ng/tests/bug39/1.js +6 -0
- package/native/vendor/quickjs-ng/tests/bug39/2.js +6 -0
- package/native/vendor/quickjs-ng/tests/bug39/3.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug488-upstream.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug633/0.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug633/1.js +4 -0
- package/native/vendor/quickjs-ng/tests/bug633/2.js +4 -0
- package/native/vendor/quickjs-ng/tests/bug633/3.js +4 -0
- package/native/vendor/quickjs-ng/tests/bug645/0.js +4 -0
- package/native/vendor/quickjs-ng/tests/bug645/1.js +9 -0
- package/native/vendor/quickjs-ng/tests/bug645/2.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug648.js +13 -0
- package/native/vendor/quickjs-ng/tests/bug652.js +4 -0
- package/native/vendor/quickjs-ng/tests/bug741.js +19 -0
- package/native/vendor/quickjs-ng/tests/bug775.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug776.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug832.js +2 -0
- package/native/vendor/quickjs-ng/tests/bug858.js +26 -0
- package/native/vendor/quickjs-ng/tests/bug904.js +6 -0
- package/native/vendor/quickjs-ng/tests/bug988.js +7 -0
- package/native/vendor/quickjs-ng/tests/bug999.js +3 -0
- package/native/vendor/quickjs-ng/tests/destructured-export.js +8 -0
- package/native/vendor/quickjs-ng/tests/detect_module/0.js +1 -0
- package/native/vendor/quickjs-ng/tests/detect_module/1.js +2 -0
- package/native/vendor/quickjs-ng/tests/detect_module/2.js +1 -0
- package/native/vendor/quickjs-ng/tests/detect_module/3.js +8 -0
- package/native/vendor/quickjs-ng/tests/detect_module/4.js +3 -0
- package/native/vendor/quickjs-ng/tests/empty.js +0 -0
- package/native/vendor/quickjs-ng/tests/fixture_cyclic_import.js +2 -0
- package/native/vendor/quickjs-ng/tests/fixture_string_exports.js +12 -0
- package/native/vendor/quickjs-ng/tests/function_source.js +14 -0
- package/native/vendor/quickjs-ng/tests/microbench.js +1267 -0
- package/native/vendor/quickjs-ng/tests/null_or_undefined.js +38 -0
- package/native/vendor/quickjs-ng/tests/str-pad-leak.js +5 -0
- package/native/vendor/quickjs-ng/tests/test_bigint.js +107 -0
- package/native/vendor/quickjs-ng/tests/test_bjson.js +366 -0
- package/native/vendor/quickjs-ng/tests/test_builtin.js +1314 -0
- package/native/vendor/quickjs-ng/tests/test_closure.js +220 -0
- package/native/vendor/quickjs-ng/tests/test_cyclic_import.js +12 -0
- package/native/vendor/quickjs-ng/tests/test_domexception.js +35 -0
- package/native/vendor/quickjs-ng/tests/test_language.js +755 -0
- package/native/vendor/quickjs-ng/tests/test_loop.js +367 -0
- package/native/vendor/quickjs-ng/tests/test_queue_microtask.js +39 -0
- package/native/vendor/quickjs-ng/tests/test_std.js +340 -0
- package/native/vendor/quickjs-ng/tests/test_string_exports.js +25 -0
- package/native/vendor/quickjs-ng/tests/test_worker.js +43 -0
- package/native/vendor/quickjs-ng/tests/test_worker_module.js +30 -0
- package/native/vendor/quickjs-ng/tests.conf +14 -0
- package/native/vendor/quickjs-ng/unicode_download.sh +19 -0
- package/native/vendor/quickjs-ng/unicode_gen.c +3108 -0
- package/native/vendor/quickjs-ng/unicode_gen_def.h +310 -0
- package/native/vendor/quickjs-ng/update-version.sh +32 -0
- package/native/vendor/webview2/include/WebView2.h +60636 -0
- package/native/vendor/webview2/include/WebView2EnvironmentOptions.h +406 -0
- package/package.json +33 -0
- package/src/backend.ts +139 -0
- package/src/build-config.ts +87 -0
- package/src/build.ts +276 -0
- package/src/common.ts +195 -0
- package/src/config.ts +89 -0
- package/src/dev.ts +164 -0
- package/src/generate.ts +200 -0
- package/src/icons.ts +116 -0
- package/src/init.ts +190 -0
- package/src/package.ts +150 -0
- package/src/zapp-cli.ts +263 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths:
|
|
8
|
+
- 'docs/**'
|
|
9
|
+
- '.github/workflows/*docs.yml'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
name: Build Docusaurus
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v6
|
|
17
|
+
- uses: actions/setup-node@v6
|
|
18
|
+
with:
|
|
19
|
+
node-version-file: 'docs/.nvmrc'
|
|
20
|
+
- name: Install dependencies
|
|
21
|
+
working-directory: ./docs
|
|
22
|
+
run: npm install
|
|
23
|
+
- name: Build
|
|
24
|
+
working-directory: ./docs
|
|
25
|
+
run: npm run build
|
|
26
|
+
- name: Upload Build Artifact
|
|
27
|
+
uses: actions/upload-pages-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
path: docs/build
|
|
30
|
+
|
|
31
|
+
deploy:
|
|
32
|
+
name: Deploy to GitHub Pages
|
|
33
|
+
needs: build
|
|
34
|
+
|
|
35
|
+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
36
|
+
permissions:
|
|
37
|
+
pages: write # to deploy to Pages
|
|
38
|
+
id-token: write # to verify the deployment originates from an appropriate source
|
|
39
|
+
|
|
40
|
+
# Deploy to the github-pages environment
|
|
41
|
+
environment:
|
|
42
|
+
name: github-pages
|
|
43
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
44
|
+
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
steps:
|
|
47
|
+
- name: Deploy to GitHub Pages
|
|
48
|
+
id: deployment
|
|
49
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "v*.*.*"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
check_meson_version:
|
|
11
|
+
runs-on: ubuntu-22.04
|
|
12
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v6
|
|
15
|
+
- name: install meson and ninja
|
|
16
|
+
run: |
|
|
17
|
+
pip install --upgrade meson ninja
|
|
18
|
+
- name: check meson version
|
|
19
|
+
run: |
|
|
20
|
+
MESON_VERSION=$(meson introspect meson.build --projectinfo | jq -r '.version')
|
|
21
|
+
test "${{ github.ref_name }}" = "v${MESON_VERSION}"
|
|
22
|
+
|
|
23
|
+
linux:
|
|
24
|
+
runs-on: ubuntu-22.04
|
|
25
|
+
strategy:
|
|
26
|
+
fail-fast: false
|
|
27
|
+
matrix:
|
|
28
|
+
arch: [aarch64, armv7, riscv64, x86, x86_64]
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
- uses: jirutka/setup-alpine@v1
|
|
32
|
+
with:
|
|
33
|
+
arch: ${{matrix.arch}}
|
|
34
|
+
packages: "build-base make cmake"
|
|
35
|
+
- name: build
|
|
36
|
+
shell: alpine.sh {0}
|
|
37
|
+
run: |
|
|
38
|
+
mkdir build
|
|
39
|
+
cd build
|
|
40
|
+
cmake -DQJS_BUILD_WERROR=ON -DQJS_BUILD_CLI_STATIC=ON ..
|
|
41
|
+
cd ..
|
|
42
|
+
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
|
|
43
|
+
cmake --build build --target qjsc -j$(getconf _NPROCESSORS_ONLN)
|
|
44
|
+
mv build/qjs build/qjs-linux-${{matrix.arch}}
|
|
45
|
+
mv build/qjsc build/qjsc-linux-${{matrix.arch}}
|
|
46
|
+
- name: check
|
|
47
|
+
shell: alpine.sh {0}
|
|
48
|
+
run: |
|
|
49
|
+
file build/*-linux-${{matrix.arch}}
|
|
50
|
+
- name: upload
|
|
51
|
+
uses: actions/upload-artifact@v7
|
|
52
|
+
with:
|
|
53
|
+
name: qjs-linux-${{matrix.arch}}
|
|
54
|
+
path: build/*-linux-${{matrix.arch}}
|
|
55
|
+
|
|
56
|
+
macos:
|
|
57
|
+
runs-on: macos-latest
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v6
|
|
60
|
+
- name: build
|
|
61
|
+
run: |
|
|
62
|
+
mkdir build
|
|
63
|
+
cd build
|
|
64
|
+
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DQJS_BUILD_WERROR=ON ..
|
|
65
|
+
make -j$(getconf _NPROCESSORS_ONLN)
|
|
66
|
+
make -C .. amalgam # writes build/quickjs-amalgam.zip
|
|
67
|
+
mv qjs qjs-darwin
|
|
68
|
+
mv qjsc qjsc-darwin
|
|
69
|
+
- name: check
|
|
70
|
+
run: |
|
|
71
|
+
lipo -info build/qjs-darwin build/qjsc-darwin
|
|
72
|
+
- name: upload amalgamation
|
|
73
|
+
uses: actions/upload-artifact@v7
|
|
74
|
+
with:
|
|
75
|
+
name: quickjs-amalgam.zip
|
|
76
|
+
path: build/quickjs-amalgam.zip
|
|
77
|
+
compression-level: 0 # already compressed
|
|
78
|
+
- name: upload
|
|
79
|
+
uses: actions/upload-artifact@v7
|
|
80
|
+
with:
|
|
81
|
+
name: qjs-darwin
|
|
82
|
+
path: build/*-darwin
|
|
83
|
+
|
|
84
|
+
windows:
|
|
85
|
+
runs-on: windows-latest
|
|
86
|
+
strategy:
|
|
87
|
+
fail-fast: false
|
|
88
|
+
matrix:
|
|
89
|
+
arch: [x86, x86_64]
|
|
90
|
+
defaults:
|
|
91
|
+
run:
|
|
92
|
+
shell: msys2 {0}
|
|
93
|
+
steps:
|
|
94
|
+
- uses: actions/checkout@v6
|
|
95
|
+
- name: Setup MSYS2
|
|
96
|
+
uses: msys2/setup-msys2@v2
|
|
97
|
+
with:
|
|
98
|
+
msystem: ${{ matrix.arch == 'x86' && 'mingw32' || 'ucrt64' }}
|
|
99
|
+
install: >-
|
|
100
|
+
git
|
|
101
|
+
make
|
|
102
|
+
pacboy: >-
|
|
103
|
+
cmake:p
|
|
104
|
+
ninja:p
|
|
105
|
+
toolchain:p
|
|
106
|
+
- name: build
|
|
107
|
+
run: |
|
|
108
|
+
make
|
|
109
|
+
mv build/qjs.exe build/qjs-windows-${{matrix.arch}}.exe
|
|
110
|
+
mv build/qjsc.exe build/qjsc-windows-${{matrix.arch}}.exe
|
|
111
|
+
- name: check
|
|
112
|
+
run: |
|
|
113
|
+
file build/qjs-windows-${{matrix.arch}}.exe
|
|
114
|
+
ldd build/qjs-windows-${{matrix.arch}}.exe build/qjsc-windows-${{matrix.arch}}.exe
|
|
115
|
+
- name: upload
|
|
116
|
+
uses: actions/upload-artifact@v7
|
|
117
|
+
with:
|
|
118
|
+
name: qjs-windows-${{matrix.arch}}
|
|
119
|
+
path: build/*-windows-${{matrix.arch}}.exe
|
|
120
|
+
|
|
121
|
+
wasi:
|
|
122
|
+
runs-on: ubuntu-22.04
|
|
123
|
+
steps:
|
|
124
|
+
- uses: actions/checkout@v6
|
|
125
|
+
- name: setup wasi-sdk
|
|
126
|
+
run: |
|
|
127
|
+
wget -nv https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-29/wasi-sdk-29.0-x86_64-linux.deb -P /tmp
|
|
128
|
+
sudo apt install /tmp/wasi-sdk*.deb
|
|
129
|
+
- name: build
|
|
130
|
+
run: |
|
|
131
|
+
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/opt/wasi-sdk/share/cmake/wasi-sdk.cmake -DQJS_BUILD_WERROR=ON
|
|
132
|
+
make -C build qjs_exe
|
|
133
|
+
mv build/qjs build/qjs-wasi.wasm
|
|
134
|
+
- name: build wasi reactor
|
|
135
|
+
run: |
|
|
136
|
+
cmake -B build -DCMAKE_TOOLCHAIN_FILE=/opt/wasi-sdk/share/cmake/wasi-sdk.cmake -DQJS_BUILD_WERROR=ON -DQJS_WASI_REACTOR=ON
|
|
137
|
+
make -C build qjs_wasi
|
|
138
|
+
mv build/qjs.wasm build/qjs-wasi-reactor.wasm
|
|
139
|
+
- name: upload
|
|
140
|
+
uses: actions/upload-artifact@v7
|
|
141
|
+
with:
|
|
142
|
+
name: qjs-wasi
|
|
143
|
+
path: |
|
|
144
|
+
build/qjs-wasi.wasm
|
|
145
|
+
build/qjs-wasi-reactor.wasm
|
|
146
|
+
|
|
147
|
+
upload-to-release:
|
|
148
|
+
needs: [linux, macos, windows, wasi, check_meson_version]
|
|
149
|
+
runs-on: ubuntu-22.04
|
|
150
|
+
steps:
|
|
151
|
+
- name: get assets
|
|
152
|
+
uses: actions/download-artifact@v8
|
|
153
|
+
with:
|
|
154
|
+
path: build
|
|
155
|
+
merge-multiple: true
|
|
156
|
+
- run: ls -R build
|
|
157
|
+
- name: release
|
|
158
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
159
|
+
uses: softprops/action-gh-release@v2
|
|
160
|
+
with:
|
|
161
|
+
files: |
|
|
162
|
+
build/*
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Test Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
paths:
|
|
6
|
+
- 'docs/**'
|
|
7
|
+
- '.github/workflows/*docs.yml'
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test-docs:
|
|
11
|
+
name: Test Docusaurus build
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v6
|
|
15
|
+
- uses: actions/setup-node@v6
|
|
16
|
+
with:
|
|
17
|
+
node-version-file: 'docs/.nvmrc'
|
|
18
|
+
- name: Install dependencies
|
|
19
|
+
working-directory: ./docs
|
|
20
|
+
run: npm install
|
|
21
|
+
- name: Build
|
|
22
|
+
working-directory: ./docs
|
|
23
|
+
run: npm run build
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: tsan
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths:
|
|
8
|
+
- '**'
|
|
9
|
+
- '!.gitignore'
|
|
10
|
+
- '!LICENSE'
|
|
11
|
+
- '!README.md'
|
|
12
|
+
- '!docs/**'
|
|
13
|
+
- '!examples/**'
|
|
14
|
+
- '.github/workflows/tsan.yml'
|
|
15
|
+
- '.github/workflows/valgrind.yml'
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
linux:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
with:
|
|
24
|
+
submodules: true
|
|
25
|
+
- name: build
|
|
26
|
+
run: |
|
|
27
|
+
cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQJS_BUILD_WERROR=ON -DQJS_ENABLE_TSAN=ON
|
|
28
|
+
cmake --build build -j`nproc`
|
|
29
|
+
- name: test
|
|
30
|
+
run: |
|
|
31
|
+
git submodule update --init --checkout --depth 1
|
|
32
|
+
./build/run-test262 -m -c test262.conf -c test262-fast.conf -a
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: valgrind
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths:
|
|
8
|
+
- '**'
|
|
9
|
+
- '!.gitignore'
|
|
10
|
+
- '!LICENSE'
|
|
11
|
+
- '!README.md'
|
|
12
|
+
- '!docs/**'
|
|
13
|
+
- '!examples/**'
|
|
14
|
+
- '.github/workflows/tsan.yml'
|
|
15
|
+
- '.github/workflows/valgrind.yml'
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
linux:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
with:
|
|
24
|
+
submodules: true
|
|
25
|
+
- name: install valgrind
|
|
26
|
+
run: sudo apt-get update && sudo apt-get install valgrind
|
|
27
|
+
- name: build
|
|
28
|
+
run: |
|
|
29
|
+
make BUILD_TYPE=RelWithDebInfo
|
|
30
|
+
- name: test
|
|
31
|
+
run: |
|
|
32
|
+
git submodule update --init --checkout --depth 1
|
|
33
|
+
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 ./build/run-test262 -m -c test262.conf -c test262-fast.conf -a
|