mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
ci: fix rust build during deployment (#5233)
This commit is contained in:
5
.github/actions/build-rust/action.yml
vendored
5
.github/actions/build-rust/action.yml
vendored
@@ -32,7 +32,9 @@ runs:
|
|||||||
- name: Set CC
|
- name: Set CC
|
||||||
if: ${{ contains(inputs.target, 'linux') && inputs.package != '@affine/native' }}
|
if: ${{ contains(inputs.target, 'linux') && inputs.package != '@affine/native' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "CC=clang" >> "$GITHUB_ENV"
|
run: |
|
||||||
|
echo "CC=clang" >> "$GITHUB_ENV"
|
||||||
|
echo "TARGET_CC=clang" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Cache cargo
|
- name: Cache cargo
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -50,3 +52,4 @@ runs:
|
|||||||
yarn workspace ${{ inputs.package }} nx build ${{ inputs.package }} --target ${{ inputs.target }} --use-napi-cross
|
yarn workspace ${{ inputs.package }} nx build ${{ inputs.package }} --target ${{ inputs.target }} --use-napi-cross
|
||||||
env:
|
env:
|
||||||
NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
|
NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
|
||||||
|
DEBUG: 'napi:*'
|
||||||
|
|||||||
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -69,7 +69,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
- name: Setup Rust
|
- name: Build Rust
|
||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
with:
|
with:
|
||||||
target: 'x86_64-unknown-linux-gnu'
|
target: 'x86_64-unknown-linux-gnu'
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: ./.github/actions/setup-node
|
uses: ./.github/actions/setup-node
|
||||||
- name: Setup Rust
|
- name: Build Rust
|
||||||
uses: ./.github/actions/build-rust
|
uses: ./.github/actions/build-rust
|
||||||
with:
|
with:
|
||||||
target: 'aarch64-unknown-linux-gnu'
|
target: 'aarch64-unknown-linux-gnu'
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
"version": "napi version"
|
"version": "napi version"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "3.0.0-alpha.12",
|
"@napi-rs/cli": "3.0.0-alpha.15",
|
||||||
"lib0": "^0.2.87",
|
"lib0": "^0.2.87",
|
||||||
"nx": "^17.1.3",
|
"nx": "^17.1.3",
|
||||||
"nx-cloud": "^16.5.2",
|
"nx-cloud": "^16.5.2",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@napi-rs/cli": "3.0.0-alpha.12",
|
"@napi-rs/cli": "3.0.0-alpha.15",
|
||||||
"@types/node": "^20.9.3",
|
"@types/node": "^20.9.3",
|
||||||
"@types/uuid": "^9.0.7",
|
"@types/uuid": "^9.0.7",
|
||||||
"ava": "^6.0.0",
|
"ava": "^6.0.0",
|
||||||
|
|||||||
12
yarn.lock
12
yarn.lock
@@ -656,7 +656,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@affine/native@workspace:packages/frontend/native"
|
resolution: "@affine/native@workspace:packages/frontend/native"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@napi-rs/cli": "npm:3.0.0-alpha.12"
|
"@napi-rs/cli": "npm:3.0.0-alpha.15"
|
||||||
"@types/node": "npm:^20.9.3"
|
"@types/node": "npm:^20.9.3"
|
||||||
"@types/uuid": "npm:^9.0.7"
|
"@types/uuid": "npm:^9.0.7"
|
||||||
ava: "npm:^6.0.0"
|
ava: "npm:^6.0.0"
|
||||||
@@ -821,7 +821,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@affine/storage@workspace:packages/backend/storage"
|
resolution: "@affine/storage@workspace:packages/backend/storage"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@napi-rs/cli": "npm:3.0.0-alpha.12"
|
"@napi-rs/cli": "npm:3.0.0-alpha.15"
|
||||||
lib0: "npm:^0.2.87"
|
lib0: "npm:^0.2.87"
|
||||||
nx: "npm:^17.1.3"
|
nx: "npm:^17.1.3"
|
||||||
nx-cloud: "npm:^16.5.2"
|
nx-cloud: "npm:^16.5.2"
|
||||||
@@ -7411,9 +7411,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@napi-rs/cli@npm:3.0.0-alpha.12":
|
"@napi-rs/cli@npm:3.0.0-alpha.15":
|
||||||
version: 3.0.0-alpha.12
|
version: 3.0.0-alpha.15
|
||||||
resolution: "@napi-rs/cli@npm:3.0.0-alpha.12"
|
resolution: "@napi-rs/cli@npm:3.0.0-alpha.15"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@napi-rs/cross-toolchain": "npm:^0.0.12"
|
"@napi-rs/cross-toolchain": "npm:^0.0.12"
|
||||||
"@octokit/rest": "npm:^20.0.2"
|
"@octokit/rest": "npm:^20.0.2"
|
||||||
@@ -7441,7 +7441,7 @@ __metadata:
|
|||||||
bin:
|
bin:
|
||||||
napi: dist/cli.js
|
napi: dist/cli.js
|
||||||
napi-raw: cli.mjs
|
napi-raw: cli.mjs
|
||||||
checksum: 50911df427f970f6926dc62e083c740b8b342e2181c65a56f4f0758d96995d110b5762fffafc1124628b6192987986b3bba93adf25921eda39c81034cd1dff54
|
checksum: e4223d226bf4412241a130a559867c1d0ed74b2ad2068853db31eb385520b2b4ebaf886900741713d8c5a840c50765d3069e2361296a819ffdfcab0a020ef700
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user