@@ -556,10 +556,29 @@ jobs:
556556 df -h
557557 - name : Checkout
558558 uses : actions/checkout@v4
559- - name : Use Node.js 20.x
559+ - name : Install Rust
560+ uses : actions-rust-lang/setup-rust-toolchain@v1
561+ with :
562+ toolchain : nightly-2024-07-15
563+ # override: true # this is by default on
564+ rustflags : " "
565+ components : rustfmt
566+ target : ${{ matrix.target }}
567+ - name : Install Node.js ${{ matrix.node-version }}
560568 uses : actions/setup-node@v4
561569 with :
562- node-version : 20.x
570+ node-version : ${{ matrix.node-version }}
571+ - name : Install Yarn
572+ run : npm install -g yarn
573+ - name : Set Yarn version
574+ run : yarn policies set-version v1.22.22
575+ - name : Install cargo-cp-artifact
576+ run :
npm install -g [email protected] 577+ - uses : Swatinem/rust-cache@v2
578+ with :
579+ workspaces : ./packages/cubejs-backend-native
580+ key : native-${{ runner.OS }}-x86_64-unknown-linux-gnu
581+ shared-key : native-${{ runner.OS }}-x86_64-unknown-linux-gnu
563582 - name : Get yarn cache directory path
564583 id : yarn-cache-dir-path
565584 run : echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
@@ -571,8 +590,6 @@ jobs:
571590 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
572591 restore-keys : |
573592 ${{ runner.os }}-yarn-
574- - name : Set Yarn version
575- run : yarn policies set-version v1.22.22
576593 - name : Yarn install
577594 uses : nick-fields/retry@v3
578595 env :
0 commit comments