This is an automated email from the ASF dual-hosted git repository.
piotr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new 9caa542d chore(ci): Remove archived actions-rs/* actions (#1858)
9caa542d is described below
commit 9caa542d03d85318519a2578b33b27690bb297c2
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Mon Jun 9 20:52:20 2025 +0200
chore(ci): Remove archived actions-rs/* actions (#1858)
The actions-rs org has been archived for years at this point and it
doesn't look like it's coming back. For security reasons we are going to
remove it from the list of allowed actions in the org soon. (See
https://github.com/apache/infrastructure-actions)
In this PR I have replaced the usage of `actions-rs/cargo` and
`actions-rs/toolchain` with bare `rustup` and `cargo` commands.
---
.github/workflows/ci-check-common.yml | 7 +-
.github/workflows/ci-check-rust.yml | 109 +++++++++++-----------------
.github/workflows/ci-prod-rust.yml | 9 +--
.github/workflows/ci-test-rust-optional.yml | 9 +--
.github/workflows/ci-test-rust.yml | 18 ++---
.github/workflows/publish_cli.yml | 7 +-
.github/workflows/publish_sdk.yml | 7 +-
.github/workflows/publish_server.yml | 9 +--
.github/workflows/release_cli.yml | 9 +--
.github/workflows/release_server.yml | 18 ++---
.github/workflows/security.yml | 9 +--
.github/workflows/test_daily.yml | 9 +--
.github/workflows/test_nightly.yml | 9 +--
13 files changed, 94 insertions(+), 135 deletions(-)
diff --git a/.github/workflows/ci-check-common.yml
b/.github/workflows/ci-check-common.yml
index 74017767..27546028 100644
--- a/.github/workflows/ci-check-common.yml
+++ b/.github/workflows/ci-check-common.yml
@@ -94,8 +94,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ - run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- run: scripts/licenses-list.sh --check
diff --git a/.github/workflows/ci-check-rust.yml
b/.github/workflows/ci-check-rust.yml
index fcf8414a..ac48d57d 100644
--- a/.github/workflows/ci-check-rust.yml
+++ b/.github/workflows/ci-check-rust.yml
@@ -48,14 +48,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo check
- uses: actions-rs/cargo@v1
- with:
- command: check
+ run: |
+ cargo check
fmt:
name: cargo fmt
@@ -64,15 +62,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo fmt
- uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ run: |
+ cargo fmt --all -- --check
clippy:
name: cargo clippy
@@ -81,15 +76,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all-targets --all-features -- -D warnings
+ run: |
+ cargo clippy --all-targets --all-features -- -D warnings
clippy-macos:
name: cargo clippy macos
@@ -98,15 +90,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo clippy (macos)
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --all-targets --all-features -- -D warnings
+ run: |
+ cargo clippy --all-targets --all-features -- -D warnings
clippy-windows:
name: cargo clippy windows
@@ -115,20 +104,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo clippy (windows/sdk)
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --package iggy --all-features -- -D warnings
+ run: |
+ cargo clippy --package iggy --all-features -- -D warnings
- name: Run cargo clippy (windows/cli)
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: --bin iggy --all-features -- -D warnings
+ run: |
+ cargo clippy --bin iggy --all-features -- -D warnings
sort:
name: cargo sort
@@ -137,19 +121,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Install cargo-sort
uses: taiki-e/install-action@v2
with:
tool: cargo-sort
- name: Run cargo sort
- uses: actions-rs/cargo@v1
- with:
- command: sort
- args: --check --workspace
+ run: |
+ cargo sort --check --workspace
doctest:
name: cargo test docs
@@ -158,15 +139,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Run cargo test (doc)
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --doc
+ run: |
+ cargo test --doc
unused_dependencies:
name: cargo machete
@@ -175,16 +153,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: Install cargo-machete
uses: taiki-e/install-action@v2
with:
tool: cargo-machete
- name: Run cargo machete
- uses: actions-rs/cargo@v1
- with:
- command: machete
- args: --with-metadata
+ run: |
+ cargo machete --with-metadata
\ No newline at end of file
diff --git a/.github/workflows/ci-prod-rust.yml
b/.github/workflows/ci-prod-rust.yml
index 864c6d11..7efec3e1 100644
--- a/.github/workflows/ci-prod-rust.yml
+++ b/.github/workflows/ci-prod-rust.yml
@@ -74,11 +74,10 @@ jobs:
rm -f $HOME/.local/share/keyrings/*
echo -n "test" | gnome-keyring-daemon --unlock
- name: Prepare ${{ matrix.platform.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.platform.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.platform.target }}
+ rustup override set stable
- name: Install cross tool
uses: taiki-e/install-action@v2
with:
diff --git a/.github/workflows/ci-test-rust-optional.yml
b/.github/workflows/ci-test-rust-optional.yml
index 7c042df2..5ca124e3 100644
--- a/.github/workflows/ci-test-rust-optional.yml
+++ b/.github/workflows/ci-test-rust-optional.yml
@@ -50,11 +50,10 @@ jobs:
with:
key: "aarch64-apple-darwin"
- name: Prepare aarch64-apple-darwin toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: aarch64-apple-darwin
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable aarch64-apple-darwin
+ rustup override set stable
- name: Set verbose flag
shell: bash
run: echo "VERBOSE_FLAG=$([[ "${RUNNER_DEBUG}" = "1" ]] && echo
"--verbose" || echo "")" >> $GITHUB_ENV
diff --git a/.github/workflows/ci-test-rust.yml
b/.github/workflows/ci-test-rust.yml
index 701d0ab5..5cfbd57b 100644
--- a/.github/workflows/ci-test-rust.yml
+++ b/.github/workflows/ci-test-rust.yml
@@ -59,11 +59,10 @@ jobs:
rm -f $HOME/.local/share/keyrings/*
echo -n "test" | gnome-keyring-daemon --unlock
- name: Prepare ${{ matrix.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.target }}
+ rustup override set stable
- name: Set verbose flag
shell: bash
run: echo "VERBOSE_FLAG=$([[ "${RUNNER_DEBUG}" = "1" ]] && echo
"--verbose" || echo "")" >> $GITHUB_ENV
@@ -88,11 +87,10 @@ jobs:
with:
key: "x86_64-pc-windows-msvc"
- name: Prepare x86_64-pc-windows-msvc toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: x86_64-pc-windows-msvc
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable x86_64-pc-windows-msvc
+ rustup override set stable
- name: Set verbose flag
shell: pwsh
run: |
diff --git a/.github/workflows/publish_cli.yml
b/.github/workflows/publish_cli.yml
index e717dc96..1c9f4ab1 100644
--- a/.github/workflows/publish_cli.yml
+++ b/.github/workflows/publish_cli.yml
@@ -90,10 +90,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ - run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: publish
run: |
diff --git a/.github/workflows/publish_sdk.yml
b/.github/workflows/publish_sdk.yml
index 72acc4a4..f8e99656 100644
--- a/.github/workflows/publish_sdk.yml
+++ b/.github/workflows/publish_sdk.yml
@@ -90,10 +90,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
+ - run: |
+ rustup toolchain add --profile=minimal stable
+ rustup override set stable
- name: publish
run: |
diff --git a/.github/workflows/publish_server.yml
b/.github/workflows/publish_server.yml
index bf2e9108..c860c666 100644
--- a/.github/workflows/publish_server.yml
+++ b/.github/workflows/publish_server.yml
@@ -132,11 +132,10 @@ jobs:
if: contains(matrix.platform.name, 'musl')
- name: Prepare ${{ matrix.platform.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.platform.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.platform.target }}
+ rustup override set stable
- name: Install cross
uses: taiki-e/install-action@v2
diff --git a/.github/workflows/release_cli.yml
b/.github/workflows/release_cli.yml
index 0bd20285..89142b6e 100644
--- a/.github/workflows/release_cli.yml
+++ b/.github/workflows/release_cli.yml
@@ -79,11 +79,10 @@ jobs:
if: ${{ matrix.platform.target == 'x86_64-unknown-linux-musl' }}
- name: Prepare ${{ matrix.platform.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.platform.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.platform.target }}
+ rustup override set stable
- name: Install cross
uses: taiki-e/install-action@v2
diff --git a/.github/workflows/release_server.yml
b/.github/workflows/release_server.yml
index 6881dc8f..9605c31b 100644
--- a/.github/workflows/release_server.yml
+++ b/.github/workflows/release_server.yml
@@ -45,11 +45,10 @@ jobs:
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
- name: Prepare x86_64-unknown-linux-musl toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: x86_64-unknown-linux-musl
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable x86_64-unknown-linux-musl
+ rustup override set stable
- name: Install cross
uses: taiki-e/install-action@v2
@@ -65,11 +64,10 @@ jobs:
cp target_x86/x86_64-unknown-linux-musl/release/iggy-server
all_artifacts/Linux-x86_64/
- name: Prepare aarch64-unknown-linux-musl toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: aarch64-unknown-linux-musl
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable aarch64-unknown-linux-musl
+ rustup override set stable
- name: Build iggy-server release binary for aarch64-unknown-linux-musl
run: cross +stable build --verbose --target aarch64-unknown-linux-musl
--release --bin iggy-server --target-dir target_aarch64
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index 36f389f4..94c2294c 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -41,12 +41,9 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- components: clippy
- override: true
+ run: |
+ rustup toolchain add --profile minimal --components clippy stable
+ rustup override set stable
- name: Install clippy-sarif sarif-fmt
run: cargo install clippy-sarif sarif-fmt
diff --git a/.github/workflows/test_daily.yml b/.github/workflows/test_daily.yml
index 275a8794..b817ca4a 100644
--- a/.github/workflows/test_daily.yml
+++ b/.github/workflows/test_daily.yml
@@ -91,11 +91,10 @@ jobs:
if: ${{ matrix.platform.cross }}
- name: Prepare ${{ matrix.platform.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.platform.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.platform.target }}
+ rustup override set stable
- name: Install cross
uses: taiki-e/install-action@v2
diff --git a/.github/workflows/test_nightly.yml
b/.github/workflows/test_nightly.yml
index 73597c9d..ac4a6d22 100644
--- a/.github/workflows/test_nightly.yml
+++ b/.github/workflows/test_nightly.yml
@@ -92,11 +92,10 @@ jobs:
if: ${{ matrix.platform.cross }}
- name: Prepare ${{ matrix.platform.target }} toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- override: true
- target: ${{ matrix.platform.target }}
+ run: |
+ rustup toolchain add --profile=minimal stable
+ rustup target add --toolchain=stable ${{ matrix.platform.target }}
+ rustup override set stable
- name: Install cross
uses: taiki-e/install-action@v2