diff --git a/.github/actions/nodejs/action.yaml b/.github/actions/nodejs/action.yaml index 26f6919eb6..489fc66d7f 100644 --- a/.github/actions/nodejs/action.yaml +++ b/.github/actions/nodejs/action.yaml @@ -17,8 +17,15 @@ runs: shell: bash run: npm config set audit false - - name: Cache NPM build artifacts + - name: Configure AWS credentials and bucket region + uses: aws-actions/configure-aws-credentials@v4 + if: contains(runner.name, 'ubuntu-platform') + with: + aws-region: eu-west-1 + + - name: Cache NPM build artifacts (S3 bucket cache) uses: everpcpc/actions-cache@v1 + if: contains(runner.name, 'ubuntu-platform') with: bucket: multi-runner-linux-x64-platform-cache-gy9micic root: actions-cache @@ -28,6 +35,16 @@ runs: restore-keys: | ${{ runner.os }}-yarn-unplugged- + - name: Cache NPM build artifacts (GitHub Actions cache) + uses: actions/cache@v3 + if: ${{ !contains(runner.name, 'ubuntu-platform') }} + with: + path: | + .yarn/unplugged + key: ${{ runner.os }}-yarn-unplugged-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn-unplugged- + - name: Install dependencies shell: bash run: yarn install diff --git a/.github/actions/rust/action.yaml b/.github/actions/rust/action.yaml index a7e45fd9e4..b4cfae2fb0 100644 --- a/.github/actions/rust/action.yaml +++ b/.github/actions/rust/action.yaml @@ -32,8 +32,15 @@ runs: echo "PROTOC=${HOME}/.local/bin/protoc" >> $GITHUB_ENV export PATH="${PATH}:${HOME}/.local/bin" - - name: Cache Rust build artifacts + - name: Configure AWS credentials and bucket region + uses: aws-actions/configure-aws-credentials@v4 + if: contains(runner.name, 'ubuntu-platform') + with: + aws-region: eu-west-1 + + - name: Cache Rust build artifacts (S3 bucket cache) uses: everpcpc/actions-cache@v1 + if: contains(runner.name, 'ubuntu-platform') with: bucket: multi-runner-linux-x64-platform-cache-gy9micic root: actions-cache @@ -45,6 +52,18 @@ runs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- + - name: Cache Rust build artifacts (GitHub Actions cache) + uses: actions/cache@v3 + if: ${{ !contains(runner.name, 'ubuntu-platform') }} + with: + path: | + /home/ubuntu/.cargo/registry/index + /home/ubuntu/.cargo/registry/cache + /home/ubuntu/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- + - name: Install clang id: deps-clang shell: bash