Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 7 additions & 113 deletions .github/workflows/test-and-build-quickjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
jobs:
metadata:
name: metadata
if: ${{ false }}
runs-on: ubuntu-latest
outputs:
edge_version: ${{ steps.version.outputs.edge_version }}
Expand Down Expand Up @@ -42,7 +41,6 @@ jobs:

quickjs-linux:
name: quickjs-linux
if: ${{ false }}
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
Expand All @@ -62,19 +60,7 @@ jobs:
set -euo pipefail
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --recursive --depth=1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Enable pnpm
shell: bash
run: |
set -euo pipefail
corepack enable
corepack prepare pnpm@latest --activate
pnpm --version
test -f node/src/node_api_types.h

- name: Install Linux build dependencies
shell: bash
Expand Down Expand Up @@ -114,25 +100,12 @@ jobs:
set -euo pipefail
make test-quickjs-only TEST_JOBS=4

- name: Test framework apps (QuickJS native)
shell: bash
run: |
set -euo pipefail
make framework-test-quickjs-native

- name: Test standalone builds (QuickJS native)
shell: bash
run: |
set -euo pipefail
make standalone-build-test-quickjs-native

- name: sccache stats
if: always()
run: sccache --show-stats || true

quickjs-macos:
name: quickjs-macos
if: ${{ false }}
runs-on: macos-latest
env:
SCCACHE_GHA_ENABLED: "true"
Expand All @@ -152,19 +125,7 @@ jobs:
set -euo pipefail
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --recursive --depth=1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Enable pnpm
shell: bash
run: |
set -euo pipefail
corepack enable
corepack prepare pnpm@latest --activate
pnpm --version
test -f node/src/node_api_types.h

- name: Validate public N-API headers stay V8-agnostic
shell: bash
Expand All @@ -179,14 +140,12 @@ jobs:
make build-edge-quickjs-cli CMAKE_BUILD_TYPE=Release JOBS=4

- name: Generate dist
if: ${{ false }}
shell: bash
run: |
set -euo pipefail
make dist-only BUILD_DIR=build-edge-quickjs-cli JOBS=4 ZIP_NAME=edge-quickjs-darwin-arm64.zip

- name: Upload artifact edge
if: ${{ false }}
uses: actions/upload-artifact@v4
with:
name: edge-quickjs-darwin-arm64
Expand All @@ -199,18 +158,6 @@ jobs:
set -euo pipefail
make test-quickjs-only TEST_JOBS=4

- name: Test framework apps (QuickJS native)
shell: bash
run: |
set -euo pipefail
make framework-test-quickjs-native

- name: Test standalone builds (QuickJS native)
shell: bash
run: |
set -euo pipefail
make standalone-build-test-quickjs-native

- name: sccache stats
if: always()
run: sccache --show-stats || true
Expand All @@ -223,67 +170,20 @@ jobs:
with:
submodules: recursive

- name: Ensure submodules are initialized
shell: bash
run: |
set -euo pipefail
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --recursive --depth=1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"

- name: Enable pnpm
shell: bash
run: |
set -euo pipefail
corepack enable
corepack prepare pnpm@latest --activate
pnpm --version

- name: Install wasixcc
uses: wasix-org/wasixcc@v0.4.3
uses: wasix-org/wasixcc@v0.4.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
sysroot-tag: v2026-06-25.1
version: v0.4.3
sysroot-tag: v2026-02-16.1
version: v0.4.2

- name: Build edge (QuickJS WASIX)
shell: bash
run: |
set -euo pipefail
make build-quickjs-wasix

- name: Install Wasmer CLI
shell: bash
run: |
set -euo pipefail
curl https://get.wasmer.io -sSfL | sh -s "v7.2.0-rc.1"
echo "${HOME}/.wasmer/bin" >> "${GITHUB_PATH}"
"${HOME}/.wasmer/bin/wasmer" --version

- name: Test edge (QuickJS WASIX)
shell: bash
run: |
set -euo pipefail
make test-wasix-quickjs-only TEST_JOBS=1

- name: Test framework apps (QuickJS WASIX)
shell: bash
run: |
set -euo pipefail
make framework-test-quickjs-wasix

- name: Test standalone builds (QuickJS WASIX)
shell: bash
run: |
set -euo pipefail
make standalone-build-test-quickjs-wasix

- name: Generate dist
if: ${{ false }}
shell: bash
run: |
set -euo pipefail
Expand All @@ -294,7 +194,6 @@ jobs:
(cd dist && zip -r ../edge-quickjs-wasix.zip bin bin-compat README.md wasmer.toml ssl-certs)

- name: Upload artifact edge
if: ${{ false }}
uses: actions/upload-artifact@v4
with:
name: edge-quickjs-wasix
Expand All @@ -303,13 +202,13 @@ jobs:

publish-nightly:
name: publish-nightly
if: ${{ false }}
runs-on: ubuntu-latest
needs:
- metadata
- quickjs-linux
- quickjs-macos
- quickjs-wasix
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
env:
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_GH_TOKEN }}
TARGET_REPO: wasmerio/edgejs-nightlies
Expand Down Expand Up @@ -451,12 +350,7 @@ jobs:
"${files[@]}"

- name: Install Wasmer CLI
shell: bash
run: |
set -euo pipefail
curl https://get.wasmer.io -sSfL | sh -s "v7.2.0-rc.1"
echo "${HOME}/.wasmer/bin" >> "${GITHUB_PATH}"
"${HOME}/.wasmer/bin/wasmer" --version
uses: wasmerio/setup-wasmer@v3

- name: Publish to wasmer.wtf
env:
Expand Down
21 changes: 7 additions & 14 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
jobs:
metadata:
name: metadata
if: ${{ false }}
runs-on: ubuntu-latest
outputs:
edge_version: ${{ steps.version.outputs.edge_version }}
Expand Down Expand Up @@ -42,7 +41,6 @@ jobs:

v8-linux:
name: v8-linux
if: ${{ false }}
runs-on: ubuntu-latest
env:
NAPI_V8_BUILD_METHOD: prebuilt
Expand All @@ -63,6 +61,7 @@ jobs:
set -euo pipefail
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --recursive --depth=1
test -f node/src/node_api_types.h

- name: Install Linux build dependencies
shell: bash
Expand Down Expand Up @@ -108,7 +107,6 @@ jobs:

v8-macos:
name: v8-macos
if: ${{ false }}
runs-on: macos-latest
env:
NAPI_V8_BUILD_METHOD: prebuilt
Expand All @@ -129,6 +127,7 @@ jobs:
set -euo pipefail
git submodule sync --recursive
git -c protocol.version=2 submodule update --init --recursive --depth=1
test -f node/src/node_api_types.h

- name: Validate public N-API headers stay V8-agnostic
shell: bash
Expand Down Expand Up @@ -167,7 +166,6 @@ jobs:

v8-wasix:
name: v8-wasix
if: ${{ false }}
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
Expand All @@ -184,11 +182,11 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Install wasixcc
uses: wasix-org/wasixcc@v0.4.3
uses: wasix-org/wasixcc@v0.4.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
sysroot-tag: v2026-06-25.1
version: v0.4.3
sysroot-tag: v2026-02-16.1
version: v0.4.2

- name: Install wasm-tools
shell: bash
Expand Down Expand Up @@ -221,13 +219,13 @@ jobs:

publish-nightly:
name: publish-nightly
if: ${{ false }}
runs-on: ubuntu-latest
needs:
- metadata
- v8-linux
- v8-macos
- v8-wasix
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
env:
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_GH_TOKEN }}
TARGET_REPO: wasmerio/edgejs-nightlies
Expand Down Expand Up @@ -369,12 +367,7 @@ jobs:
"${files[@]}"

- name: Install Wasmer CLI
shell: bash
run: |
set -euo pipefail
curl https://get.wasmer.io -sSfL | sh -s "v7.2.0-alpha.3"
echo "${HOME}/.wasmer/bin" >> "${GITHUB_PATH}"
"${HOME}/.wasmer/bin/wasmer" --version
uses: wasmerio/setup-wasmer@v3

- name: Publish to wasmer.wtf
env:
Expand Down
14 changes: 5 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[submodule "node"]
path = node
url = https://github.com/nodejs/node.git
branch = v24.x
[submodule "test"]
path = test
url = https://github.com/Arshia001/node-test.git
url = https://github.com/wasmerio/node-test.git
[submodule "wasmer-examples"]
path = wasmer-examples
url = git@github.com:wasmerio/examples.git
Expand All @@ -11,11 +15,3 @@
[submodule "ssl-certs"]
path = ssl-certs
url = https://github.com/wasix-org/ssl-certs.git
[submodule "deps/libuv-wasix"]
path = deps/libuv-wasix
url = https://github.com/wasix-org/libuv.git
branch = wasix-1.51.0
[submodule "deps/openssl-wasix"]
path = deps/openssl-wasix
url = https://github.com/wasix-org/openssl.git
branch = wasix-3.5.8
Loading
Loading