mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat(client): add octobase-node to electron (#1672)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
48
.github/workflows/client-app.yml
vendored
48
.github/workflows/client-app.yml
vendored
@@ -69,6 +69,14 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Rust cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: './packages/octobase-node -> target'
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: before-make-web-static
|
||||
@@ -79,6 +87,13 @@ jobs:
|
||||
name: before-make-electron-dist
|
||||
path: apps/electron/dist
|
||||
|
||||
- name: build octobase-node
|
||||
run: yarn build:octobase-node
|
||||
working-directory: apps/electron
|
||||
|
||||
- name: move octobase Binary
|
||||
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
||||
|
||||
- name: make build
|
||||
run: yarn make-macos-x64
|
||||
working-directory: apps/electron
|
||||
@@ -102,6 +117,17 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: add arm64 target
|
||||
run: rustup target add aarch64-apple-darwin
|
||||
|
||||
- name: Rust cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: './packages/octobase-node -> target'
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: before-make-web-static
|
||||
@@ -112,6 +138,13 @@ jobs:
|
||||
name: before-make-electron-dist
|
||||
path: apps/electron/dist
|
||||
|
||||
- name: build octobase-node
|
||||
run: yarn build:octobase-node
|
||||
working-directory: apps/electron
|
||||
|
||||
- name: move octobase Binary
|
||||
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
||||
|
||||
- name: make build
|
||||
run: yarn make-macos-arm64
|
||||
working-directory: apps/electron
|
||||
@@ -135,6 +168,9 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: before-make-web-static
|
||||
@@ -145,6 +181,18 @@ jobs:
|
||||
name: before-make-electron-dist
|
||||
path: apps/electron/dist
|
||||
|
||||
- name: move octobase Binary
|
||||
run: cp ./packages/octobase-node/octobase.*.node ./apps/electron/dist/layers/main/
|
||||
|
||||
- name: Rust cache
|
||||
uses: swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: './packages/octobase-node -> target'
|
||||
|
||||
- name: build octobase-node
|
||||
run: yarn build:octobase-node
|
||||
working-directory: apps/electron
|
||||
|
||||
- name: make build
|
||||
run: yarn make-windows-x64
|
||||
working-directory: apps/electron
|
||||
|
||||
Reference in New Issue
Block a user