Skip to content

Commit

Permalink
chore: update deps (#740)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: update depedendencies and optimize build binary

* fix: issue 742

* fix: #741

* chore: build esm and cjs for js plugins

* fix: external modules issues

* fix: type check ci

* fix: test issue

* chore: update js plugins package.json

* chore: add github actions debug

* fix: windows runtime inject issue

* fix: config test

* chore: do not optimize size of rust plugin

* fix: export order for js plugins

* fix: js plugins __dirname

* fix: js plugin __dirname

---------

Co-authored-by: brightwwu <[email protected]>
  • Loading branch information
wre232114 and brightwwu authored Nov 19, 2023
1 parent 3f42a32 commit c12156f
Show file tree
Hide file tree
Showing 151 changed files with 1,832 additions and 1,137 deletions.
37 changes: 28 additions & 9 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,31 @@
[net]
git-fetch-with-cli = true

# [target.aarch64-apple-darwin]
# rustflags = [
# "-C",
# "link-arg=-I<sysroot>/usr/include",
# "-C",
# "link-arg=-F<sysroot>/System/Library/Frameworks",
# "-C",
# "link-arg=-L<sysroot>/usr/lib",
# ]
[build]

rustdocflags = ["--cfg", "docsrs"]
rustflags = ["-Zshare-generics=y"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-feature=+sse2", "-Zshare-generics=y"]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
rustflags = [
"-C",
"target-feature=-crt-static",
"-C",
"link-arg=-lgcc",
"-Zshare-generics=y",
]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
rustflags = ["-C", "target-feature=+crt-static", "-Zshare-generics=y"]


[target.aarch64-pc-windows-msvc]
linker = "rust-lld"
5 changes: 5 additions & 0 deletions .changeset/neat-geckos-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farmfe/core': patch
---

fix #741
5 changes: 5 additions & 0 deletions .changeset/quick-ducks-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farmfe/plugin-react': patch
---

fix #742
7 changes: 7 additions & 0 deletions .changeset/soft-pandas-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@farmfe/runtime-plugin-import-meta': patch
'@farmfe/runtime-plugin-hmr': patch
'@farmfe/runtime': patch
---

Fix import.meta.url runtime issue
4 changes: 2 additions & 2 deletions .github/workflows/rust-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# - run: chmod +x /usr/local/bin/zig

- name: Build - Arm64
run: cd packages/core && npm run build:rs -- --target aarch64-apple-darwin
run: cd packages/core && npm run build:rs:publish -- --target aarch64-apple-darwin
# run: cd packages/core && npm run build:rs -- --target aarch64-apple-darwin --zig
- name: Upload - Arm64
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
run: npm install -g pnpm && pnpm i --frozen-lockfile

- name: Build - ${{ matrix.settings.abi }}
run: cd packages/core && npm run build:rs
run: cd packages/core && npm run build:rs:publish
- name: Upload - ${{ matrix.settings.abi }}
uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,10 @@ jobs:

- name: Test Examples - ${{ matrix.settings.abi }}
run: node scripts/test-examples.mjs

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30
with:
limit-access-to-actor: true
7 changes: 7 additions & 0 deletions .github/workflows/ts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
path: ./packages/core/binding
- name: Test - ${{ matrix.settings.abi }}
run: npm run test -- --coverage

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 30
with:
limit-access-to-actor: true
# - name: Coverage
# uses: codecov/codecov-action@v3
# with:
Expand Down
Loading

0 comments on commit c12156f

Please sign in to comment.