Skip to content

Commit 2f9db8c

Browse files
authored
chore: bump farm versions (#131)
* chore: bump farm versions * ci(test): add test ci * chore: remove version bump * ci: fix build command
1 parent 31816f6 commit 2f9db8c

File tree

5 files changed

+111
-43
lines changed

5 files changed

+111
-43
lines changed

.changes/bump-farm.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"algohub": patch:hotfix
3+
---
4+
5+
Bump farm version to `v1.6.0` and bump worker plugin to `v0.0.7`.

.github/workflows/test.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Test build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
release-tauri:
7+
permissions:
8+
contents: write
9+
name: Build test
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- platform: "macos-latest" # for Arm based macs (M1 and above).
15+
args: "--target aarch64-apple-darwin"
16+
target: "aarch64-apple-darwin"
17+
- platform: "macos-latest" # for Intel based macs.
18+
args: "--target x86_64-apple-darwin"
19+
target: "x86_64-apple-darwin"
20+
- platform: "ubuntu-22.04"
21+
args: ""
22+
target: ""
23+
- platform: "windows-latest"
24+
args: "--target x86_64-pc-windows-msvc --bundles nsis"
25+
target: "x86_64-pc-windows-msvc"
26+
27+
runs-on: ${{ matrix.platform }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: pnpm/action-setup@v4
31+
name: Install pnpm
32+
with:
33+
version: 9
34+
run_install: false
35+
36+
- name: Setup Node.js 20
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
cache: "pnpm"
41+
42+
- name: Install Rust nightly
43+
uses: dtolnay/rust-toolchain@nightly
44+
with:
45+
toolchain: nightly
46+
targets: ${{ matrix.target }}
47+
48+
- name: Install dependencies (ubuntu only)
49+
if: matrix.platform == 'ubuntu-22.04'
50+
run: |
51+
sudo apt-get update
52+
sudo apt-get install -y libwebkit2gtk-4.1-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
53+
54+
- name: Rust Cache
55+
uses: Swatinem/rust-cache@v2
56+
with:
57+
workspaces: "./src-tauri -> target"
58+
59+
- name: Install frontend dependencies
60+
run: pnpm install
61+
62+
- name: Build Tauri app
63+
run: pnpm tauri build ${{ matrix.args }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@farmfe/cli": "^1.0.4",
4242
"@farmfe/core": "^1.6.0",
4343
"@farmfe/js-plugin-postcss": "^1.11.0",
44-
"@farmfe/plugin-worker": "^0.0.6",
44+
"@farmfe/plugin-worker": "^0.0.7",
4545
"@primevue/auto-import-resolver": "^4.2.5",
4646
"@tauri-apps/cli": "^2.1.0",
4747
"@types/node": "^22.10.2",

pnpm-lock.yaml

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)