Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): support compile to wasi target #22870

Merged
merged 52 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
78976a3
feat(core): experimental wasi target
Brooooooklyn Mar 21, 2024
535296d
feat(core): add release for wasm
FrozenPandaz Apr 4, 2024
8b9310d
fix(core): napi config and code generationfix config
Brooooooklyn Apr 18, 2024
0f9fdc2
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Apr 27, 2024
41e3a96
chore(repo): ignore wasm outputs from prettier
FrozenPandaz Apr 27, 2024
57f2ba9
fix(core): add wasm runtime dependency
FrozenPandaz Apr 27, 2024
f26badb
fix(core): disable daemon and pseudo terminal on wasm
FrozenPandaz Apr 27, 2024
df88880
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz May 24, 2024
5864b00
chore(repo): set toolchain back to stable but nightly for wasm
FrozenPandaz May 24, 2024
0c65e7f
chore(core): fix readme for wasm binary
FrozenPandaz May 24, 2024
ebae9d8
chore(core): fix name to match target and re-build
FrozenPandaz May 24, 2024
f381dfc
chore(repo): change package name to match generated index and fix pub…
FrozenPandaz May 24, 2024
a0b6608
fix(core): fix armv7 native build
FrozenPandaz May 25, 2024
34c4582
chore(repo): remove wasi package
FrozenPandaz May 25, 2024
8164f5b
fix(core): fix artifacts step
FrozenPandaz May 25, 2024
1072f4f
fix(repo): fix wasm publish
FrozenPandaz May 25, 2024
f889da9
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 10, 2024
ef38a30
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 12, 2024
2f08c81
fix(core): create wasm safe implementation of mutex
FrozenPandaz Jun 11, 2024
c01a702
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 13, 2024
c2504a1
fix(core): fix nx npm ignore
FrozenPandaz Jun 13, 2024
007bbfa
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 14, 2024
86785ec
fix(misc): warn when file watching cannot be done
FrozenPandaz Jun 14, 2024
d969ecf
fix(core): fix daemon error in docs
FrozenPandaz Jun 14, 2024
83b226f
fix(core): fix daemon error in docs
FrozenPandaz Jun 14, 2024
193b571
chore(misc): explicitly enable daemon for some tests which use watcher
FrozenPandaz Jun 14, 2024
9cee36b
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 14, 2024
eb6d777
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 20, 2024
6f6b04c
chore(core): add logging for hashing
FrozenPandaz Jun 20, 2024
87bb127
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 21, 2024
07f19ed
chore(core): add logging for hashing
FrozenPandaz Jun 21, 2024
417ac74
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 24, 2024
26cab6f
chore(core): do not use hash in chunks on wasm
FrozenPandaz Jun 24, 2024
9ecd080
chore(core): initialize wasm with more memory
FrozenPandaz Jun 24, 2024
9621716
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 25, 2024
68db37e
chore(core): update rust version and compiler options
FrozenPandaz Jun 25, 2024
05567cc
chore(repo): update @monodon/rust to 2.0.0-beta.1
FrozenPandaz Jun 25, 2024
1e4b781
chore(repo): override monodon release
FrozenPandaz Jun 25, 2024
ff5db3b
fix(core): suppress warning for wasi
FrozenPandaz Jun 26, 2024
d31b9b7
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 26, 2024
b988ae5
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jun 27, 2024
a28b8f6
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jul 2, 2024
8f77235
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jul 4, 2024
bf8a370
fix(node): fix e2e tests
FrozenPandaz Jul 4, 2024
cc98def
fix(node): fix e2e tests
FrozenPandaz Jul 4, 2024
695844f
fix(node): fix e2e tests
FrozenPandaz Jul 4, 2024
335c21a
chore(core): cleanup wasm work
FrozenPandaz Jul 5, 2024
b4c4a11
chore(repo): cleanup wasm code
FrozenPandaz Jul 5, 2024
b0ba6c7
Merge remote-tracking branch 'origin/master' into wasm
FrozenPandaz Jul 5, 2024
1e85c39
chore(core): cleanup walker for wasm
FrozenPandaz Jul 5, 2024
ee1b87d
chore(core): cleanup wasm const
FrozenPandaz Jul 5, 2024
dcac42e
chore(core): cleanup wasm walker logic
FrozenPandaz Jul 5, 2024
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
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
build: |
pnpm nx run-many --target=build-native -- --target=armv7-unknown-linux-gnueabihf
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=/usr/bin/arm-linux-gnueabihf-gcc pnpm nx run-many --target=build-native -- --target=armv7-unknown-linux-gnueabihf
# Android (not needed)
# - host: ubuntu-latest
# target: aarch64-linux-android
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
repository: ${{ needs.resolve-required-data.outputs.repo }}
repository: ${{ needs.resolve-required-data.outputs.repo }}
ref: ${{ needs.resolve-required-data.outputs.ref }}

- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -281,7 +281,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: packages/**/*.node
path: |
packages/**/*.node
packages/**/*.wasm
if-no-files-found: error

build-freebsd:
Expand All @@ -294,7 +296,7 @@ jobs:
- uses: actions/checkout@v4
if: ${{ github.event_name != 'schedule' && !github.event.inputs.pr }}
with:
repository: ${{ needs.resolve-required-data.outputs.repo }}
repository: ${{ needs.resolve-required-data.outputs.repo }}
ref: ${{ needs.resolve-required-data.outputs.ref }}

- name: Build
Expand Down Expand Up @@ -396,7 +398,8 @@ jobs:
- name: List artifacts
run: ls -R artifacts
shell: bash

- name: Build Wasm
run: pnpm build:wasm
- name: Publish
env:
VERSION: ${{ needs.resolve-required-data.outputs.version }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ out
.npm/
.profile
.rustup/
target
*.wasm
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ packages/nx/src/plugins/js/lock-file/__fixtures__/**/*.*
packages/**/schematics/**/files/**/*.html
packages/**/generators/**/files/**/*.html
packages/nx/src/native/**/*.rs
packages/nx/src/native/browser.js
packages/nx/src/native/nx.wasi-browser.js
packages/nx/src/native/nx.wasi.cjs
packages/nx/src/native/wasi-worker-browser.mjs
packages/nx/src/native/wasi-worker.mjs
packages/nx/src/native/native-bindings.js
packages/nx/src/native/index.d.ts
nx-dev/nx-dev/.next/
Expand Down
Loading