From e593ac4be8d2c0ebccb338f13709ce148976b922 Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Tue, 25 Jun 2024 00:18:58 +0300 Subject: [PATCH] =?UTF-8?q?chore(ci):=20update=20most=20of=C2=A0the=C2=A0C?= =?UTF-8?q?I=20actions=20besides=20rust-cubestore-*=20to=20latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/init-ci/action.yaml | 2 +- .github/workflows/birdbox.yml | 6 +-- .github/workflows/cloud.yml | 2 +- .github/workflows/drivers-tests.yml | 17 +++++--- .github/workflows/master.yml | 6 +-- .github/workflows/publish.yml | 56 ++++++++++++++----------- .github/workflows/push-cross-images.yml | 6 +-- .github/workflows/push.yml | 56 +++++++++++++++---------- .github/workflows/rust-cubesql.yml | 34 ++++++++++----- 9 files changed, 110 insertions(+), 75 deletions(-) diff --git a/.github/actions/init-ci/action.yaml b/.github/actions/init-ci/action.yaml index 6d8967c7559de..1871661664d04 100644 --- a/.github/actions/init-ci/action.yaml +++ b/.github/actions/init-ci/action.yaml @@ -11,7 +11,7 @@ runs: with: node-version: ${{ inputs.node }} - name: Cache node modules - uses: actions/cache@v3 + uses: actions/cache@v4 with: # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm diff --git a/.github/workflows/birdbox.yml b/.github/workflows/birdbox.yml index af44998631642..3aa32f151decf 100644 --- a/.github/workflows/birdbox.yml +++ b/.github/workflows/birdbox.yml @@ -38,7 +38,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Restore lerna - uses: actions/cache@v3 + uses: actions/cache@v4 with: # npm cache files are stored in `~/.npm` on Linux/macOS path: | @@ -99,7 +99,7 @@ jobs: with: node-version: 18.x - name: Restore lerna - uses: actions/cache@v3 + uses: actions/cache@v4 with: # npm cache files are stored in `~/.npm` on Linux/macOS path: | @@ -162,7 +162,7 @@ jobs: with: node-version: 18.x - name: Restore lerna - uses: actions/cache@v3 + uses: actions/cache@v4 with: # npm cache files are stored in `~/.npm` on Linux/macOS path: | diff --git a/.github/workflows/cloud.yml b/.github/workflows/cloud.yml index 7bc538ea8bd98..62db5521eec1e 100644 --- a/.github/workflows/cloud.yml +++ b/.github/workflows/cloud.yml @@ -77,7 +77,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/workflows/drivers-tests.yml b/.github/workflows/drivers-tests.yml index fac532f0dda5e..9c9114d51c9eb 100644 --- a/.github/workflows/drivers-tests.yml +++ b/.github/workflows/drivers-tests.yml @@ -92,13 +92,18 @@ jobs: image: cubejs/rust-cross:${{ matrix.target }}-25062024 steps: + - name: install Curl + run: | + apt-get update + apt-get install -y curl - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt target: ${{ matrix.target }} - name: Install Node.js ${{ matrix.node-version }} @@ -155,7 +160,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Download native build uses: actions/download-artifact@v4 @@ -164,12 +169,12 @@ jobs: path: packages/cubejs-backend-native/ - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.10.3 - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . file: ./packages/cubejs-docker/testing-drivers.Dockerfile @@ -215,7 +220,7 @@ jobs: shell: bash - name: Restore yarn cache # We don't want to save it on finish, restore only! - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index ccdf6c856a8e1..8dd644cd6a88a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -51,13 +51,13 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.9.1 - name: Push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./ file: ./packages/cubejs-docker/dev.Dockerfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2682aa6b3adc..412875115d09b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,10 +16,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Node.js 18.x uses: actions/setup-node@v4 @@ -30,7 +31,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -90,10 +91,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt target: ${{ matrix.target }} - name: Install Node.js ${{ matrix.node-version }} @@ -109,7 +111,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -201,10 +203,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt target: ${{ matrix.target }} - name: Install Python @@ -221,7 +224,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -297,10 +300,11 @@ jobs: run: rustup set auto-self-update disable shell: bash - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Python uses: actions/setup-python@v4 @@ -316,7 +320,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -413,15 +417,15 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.10.3 - name: Copy yarn.lock file run: cp yarn.lock packages/cubejs-docker - name: Push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./packages/cubejs-docker file: ./packages/cubejs-docker/latest.Dockerfile @@ -490,15 +494,15 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.9.1 - name: Copy yarn.lock file run: cp yarn.lock packages/cubejs-docker - name: Push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./packages/cubejs-docker file: ./packages/cubejs-docker/latest-debian-jdk.Dockerfile @@ -588,18 +592,18 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.9.1 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-${{ matrix.target }}-buildx-${{ matrix.tag }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-${{ matrix.target }}-buildx-${{ matrix.tag }}- - name: Push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./rust/cubestore/ file: ./rust/cubestore/Dockerfile @@ -668,11 +672,12 @@ jobs: if: contains(runner.os, 'windows') shell: bash - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2024-01-29 target: ${{ matrix.target }} - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - uses: Swatinem/rust-cache@v2 with: @@ -747,11 +752,12 @@ jobs: if: contains(runner.os, 'windows') shell: bash - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2024-01-29 target: ${{ matrix.target }} - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/push-cross-images.yml b/.github/workflows/push-cross-images.yml index 756160ae4ac4e..e49537b78fabb 100644 --- a/.github/workflows/push-cross-images.yml +++ b/.github/workflows/push-cross-images.yml @@ -34,9 +34,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.9.1 driver-opts: network=host @@ -45,7 +45,7 @@ jobs: with: path: rust/cubestore/cross/ - name: Push to Docker Hub - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./ file: ./rust/cubestore/cross/${{ matrix.target }}.Dockerfile diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ba7221a907d8b..11a8077e2ea28 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -54,10 +54,11 @@ jobs: # pulls all commits (needed for codecov) fetch-depth: 2 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -68,7 +69,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -106,13 +107,18 @@ jobs: if: (needs['latest-tag-sha'].outputs.sha != github.sha) steps: + - name: Install cUrl + run: | + sudo apt-get update + sudo apt-get install -y curl - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Node.js 18.x uses: actions/setup-node@v4 @@ -123,7 +129,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -153,13 +159,18 @@ jobs: if: (needs['latest-tag-sha'].outputs.sha != github.sha) steps: + - name: Install cUrl + run: | + sudo apt-get update + sudo apt-get install -y curl - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Node.js 18.x uses: actions/setup-node@v4 @@ -170,7 +181,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -232,7 +243,7 @@ jobs: cd rust/cubestore cargo build --release -j 4 - name: 'Upload cubestored-x86_64-unknown-linux-gnu-release artifact' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cubestored-x86_64-unknown-linux-gnu-release path: ./rust/cubestore/target/release/cubestored @@ -277,7 +288,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -298,7 +309,7 @@ jobs: - name: Lerna tsc run: yarn tsc - name: Download cubestored-x86_64-unknown-linux-gnu-release artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: ./rust/cubestore/target/release/ name: cubestored-x86_64-unknown-linux-gnu-release @@ -330,10 +341,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 @@ -344,7 +356,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -407,7 +419,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -432,7 +444,7 @@ jobs: - name: Lerna tsc run: yarn tsc - name: Download cubestored-x86_64-unknown-linux-gnu-release artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: rust/cubestore/downloaded/latest/bin/ name: cubestored-x86_64-unknown-linux-gnu-release @@ -521,14 +533,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: version: v0.9.1 driver-opts: network=host - name: Build image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 timeout-minutes: 30 with: context: . @@ -545,7 +557,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -625,7 +637,7 @@ jobs: yarn run cypress:install yarn run cypress:birdbox - name: Upload screenshots on failure - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots-docker-dev-${{ matrix.name }} diff --git a/.github/workflows/rust-cubesql.yml b/.github/workflows/rust-cubesql.yml index 6f04c26ae2080..1ccb3c1b860b1 100644 --- a/.github/workflows/rust-cubesql.yml +++ b/.github/workflows/rust-cubesql.yml @@ -21,13 +21,18 @@ jobs: name: Check fmt/clippy steps: + - name: install Curl + run: | + sudo apt-get update + sudo apt-get install -y curl - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 with: @@ -107,13 +112,18 @@ jobs: image: cubejs/rust-cross:${{ matrix.target }}-25062024 steps: + - name: install Curl + run: | + apt-get update + apt-get install -y curl - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt target: ${{ matrix.target }} - uses: Swatinem/rust-cache@v2 @@ -133,7 +143,7 @@ jobs: id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -214,10 +224,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt target: ${{ matrix.target }} - name: Install Python @@ -236,7 +247,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -296,10 +307,11 @@ jobs: run: rustup set auto-self-update disable shell: bash - name: Install Rust - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: toolchain: nightly-2023-12-13 - override: true + # override: true # this is by default on + rustflags: "" components: rustfmt - name: Install Python uses: actions/setup-python@v4 @@ -317,7 +329,7 @@ jobs: run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - name: Restore yarn cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}