Skip to content

Commit

Permalink
chore: bump farm versions (#131)
Browse files Browse the repository at this point in the history
* chore: bump farm versions

* ci(test): add test ci

* chore: remove version bump

* ci: fix build command
  • Loading branch information
fu050409 authored Dec 22, 2024
1 parent 31816f6 commit 2f9db8c
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 43 deletions.
5 changes: 5 additions & 0 deletions .changes/bump-farm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"algohub": patch:hotfix
---

Bump farm version to `v1.6.0` and bump worker plugin to `v0.0.7`.
63 changes: 63 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Test build

on: [pull_request]

jobs:
release-tauri:
permissions:
contents: write
name: Build test
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
args: "--target aarch64-apple-darwin"
target: "aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
target: "x86_64-apple-darwin"
- platform: "ubuntu-22.04"
args: ""
target: ""
- platform: "windows-latest"
args: "--target x86_64-pc-windows-msvc --bundles nsis"
target: "x86_64-pc-windows-msvc"

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

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

- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly
targets: ${{ matrix.target }}

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: Install frontend dependencies
run: pnpm install

- name: Build Tauri app
run: pnpm tauri build ${{ matrix.args }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@farmfe/cli": "^1.0.4",
"@farmfe/core": "^1.6.0",
"@farmfe/js-plugin-postcss": "^1.11.0",
"@farmfe/plugin-worker": "^0.0.6",
"@farmfe/plugin-worker": "^0.0.7",
"@primevue/auto-import-resolver": "^4.2.5",
"@tauri-apps/cli": "^2.1.0",
"@types/node": "^22.10.2",
Expand Down
82 changes: 41 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f9db8c

Please sign in to comment.