There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
ci: fix Rust cache (#9377)
Brooooooklyn12bfbf1db0b7
diff --git a/.github/actions/build-rust/action.yml b/.github/actions/build-rust/action.ymlindex 3a36e64050..22300abdf7 100644--- a/.github/actions/build-rust/action.yml+++ b/.github/actions/build-rust/action.yml@@ -34,15 +34,10 @@ runs:echo "TARGET_CC=clang" >> "$GITHUB_ENV"- name: Cache cargo- uses: actions/cache@v4+ uses: Swatinem/rust-cache@v2with:- path: |- ~/.cargo/registry/index/- ~/.cargo/registry/cache/- ~/.cargo/git/db/- ~/.napi-rs- target/${{ inputs.target }}- key: stable-${{ inputs.target }}-cargo-cache+ save-if: ${{ github.ref_name == 'canary' }}+ shared-key: ${{ inputs.target }}-inputs.package- name: Buildshell: bashrun: |diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.ymlindex 9fc234fd16..965c35364f 100644--- a/.github/workflows/build-test.yml+++ b/.github/workflows/build-test.yml@@ -31,14 +31,14 @@ jobs:name: Optimize CIruns-on: ubuntu-latestoutputs:- skip: ${{ steps.graphite.outputs.skip }}+ skip: ${{ steps.check_skip.outputs.skip }}steps:- uses: actions/checkout@v4- name: Graphite CI Optimizeruses: withgraphite/graphite-ci-action@main- id: graphite+ id: check_skipwith:- token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}+ graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}analyze:name: Analyze@@ -311,6 +311,8 @@ jobs:build-server-native:name: Build Server nativeruns-on: ubuntu-latest+ needs: optimize_ci+ if: needs.optimize_ci.outputs.skip == 'false'env:CARGO_PROFILE_RELEASE_DEBUG: '1'steps:@@ -335,7 +337,8 @@ jobs:build-electron-renderer:name: Build @affine/electron rendererruns-on: ubuntu-latest-+ needs: optimize_ci+ if: needs.optimize_ci.outputs.skip == 'false'steps:- uses: actions/checkout@v4- name: Setup Node.js@@ -425,6 +428,8 @@ jobs:rust-test:name: Run native testsruns-on: ubuntu-latest+ needs: optimize_ci+ if: needs.optimize_ci.outputs.skip == 'false'env:CARGO_TERM_COLOR: alwayssteps:@@ -826,6 +831,8 @@ jobs:test-build-mobile-app:uses: ./.github/workflows/release-mobile.yml+ needs: optimize_ci+ if: needs.optimize_ci.outputs.skip == 'false'with:build-type: canarybuild-target: development