Skip to content

Commit

Permalink
Update checkout and rust toolchain actions
Browse files Browse the repository at this point in the history
Replace actions/checkout@v3 with @v4; the former is deprecated and
issues warnings for an out-of-date version of Node JS.

Replace actions-rs/toolchain with dtolnay/rust-toolchain, as the former
has had no changes in 4 years, uses the deprecated `set-output`
function, and was archived in October. Follow the findings of
RustCrypto/actions#17.
  • Loading branch information
theory committed Feb 16, 2024
1 parent 946efca commit bf6af84
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/actions/argocd-update/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
using: "composite"
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ssh-key: ${{ inputs.ssh_key }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/update-pod-init/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
using: "composite"
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ssh-key: ${{ inputs.ssh_key }}
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/cargo-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
directories: ${{ steps.find_directories.outputs.build_matrix }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Find directories with Dockerfiles that changed
id: find_directories
uses: ./.github/actions/find-changed-directories
Expand All @@ -35,22 +35,20 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.find_directories.outputs.directories) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
set -xe
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
- name: Install minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install minimal stable with clippy and rustfmt
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -78,8 +76,8 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.find_directories.outputs.directories) }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install system dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cargo_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
changed_crates: ${{ steps.find_directories.outputs.build_matrix }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Find directories including Cargo.toml that changed
id: find_directories
uses: ./.github/actions/find-changed-directories
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
matrix: ${{ fromJson(needs.find_directories.outputs.changed_crates) }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Determine which flags to use on cargo publish
id: cargo_flags
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conductor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
kube_version:
- "1.25.8"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
set -xe
Expand All @@ -46,7 +46,7 @@ jobs:
uses: helm/kind-action@v1.7.0
with:
install_only: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
branch_name: ${{ steps.versions.outputs.BRANCH_NAME }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set version strings
id: versions
run: |
Expand Down Expand Up @@ -48,9 +48,9 @@ jobs:
matrix: ${{ fromJson(needs.find_directories.outputs.build_images) }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check out the coredb repo to reuse some actions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: tembo-io/tembo
path: ./.tembo
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- build_and_push_images
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check out the repo
uses: ./.github/actions/argocd-update
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'code'

- name: Checkout gh-pages branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 'gh-pages'
path: 'gh-pages'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
directories: ${{ steps.find_directories.outputs.build_matrix }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check out the coredb repo to reuse some actions
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: tembo-io/tembo
path: ./.tembo
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: 'code'

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
matrix: ${{ fromJson(needs.find_directories.outputs.directories) }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -92,7 +92,7 @@ jobs:
- check_version
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
# if: needs.lint-ct.outputs.changed == 'true'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
kube_version:
- '1.25.8'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
set -xe
Expand All @@ -53,7 +53,7 @@ jobs:
uses: helm/kind-action@v1.7.0
with:
install_only: true
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/prom_exporter_ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
name: Run linters
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Rust minimal nightly with clippy and rustfmt
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
Expand All @@ -52,9 +51,9 @@ jobs:
name: Run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion tembo-pod-init/.github/actions/argocd-update/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
using: "composite"
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ssh-key: ${{ inputs.ssh_key }}
Expand Down
4 changes: 2 additions & 2 deletions tembo-pod-init/.github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
short_sha: ${{ steps.versions.outputs.SHORT_SHA }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Determine which tags to publish
id: tags
run: |
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- build_and_push
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check out the repo
uses: ./.github/actions/argocd-update
with:
Expand Down

0 comments on commit bf6af84

Please sign in to comment.