Skip to content

Commit

Permalink
chore(ci): update most of the CI actions besides rust-cubestore-* to …
Browse files Browse the repository at this point in the history
…latest
  • Loading branch information
KSDaemon committed Jun 25, 2024
1 parent ed920f7 commit e593ac4
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/actions/init-ci/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/birdbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/drivers-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
56 changes: 31 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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') }}
Expand Down Expand Up @@ -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
Expand All @@ -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') }}
Expand Down Expand Up @@ -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
Expand All @@ -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') }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/push-cross-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading

0 comments on commit e593ac4

Please sign in to comment.