This is an automated email from the ASF dual-hosted git repository.
xuehuilang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-client-rust.git
The following commit(s) were added to refs/heads/main by this push:
new f552acb chore(ci): Replace archived actions-rs actions (#14)
f552acb is described below
commit f552acb4adea013b2fd6ded16e8bcc6dcf3059dc
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Thu Jun 12 06:28:43 2025 +0200
chore(ci): Replace archived actions-rs actions (#14)
---
.github/workflows/publish.yml | 8 +++-----
.github/workflows/rust.yml | 19 ++++++++-----------
2 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 1630e9a..752381a 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -29,11 +29,9 @@ jobs:
uses: actions/checkout@v4
- name: Set up Rust
- uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
- components: rustfmt, clippy
+ run: |
+ rustup toolchain add --profile=minimal --component rustfmt,clippy
nightly
+ rustup override set nightly
- name: Update version in Cargo.toml
run: |
VERSION=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 7ddc354..3c2aef0 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -29,17 +29,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: ${{ matrix.target == 'i686-pc-windows-gnu' &&
format('{0}-i686-pc-windows-gnu', matrix.channel) || matrix.channel }}
- target: ${{ matrix.target }}
- override: true
- components: rustfmt
+ - name: Setup toolchain
+ env:
+ TOOLCHAIN: ${{ matrix.target == 'i686-pc-windows-gnu' &&
format('{0}-i686-pc-windows-gnu', matrix.channel) || matrix.channel }}
+ run: |
+ rustup toolchain add --component rustfmt --target ${{ matrix.target
}} $TOOLCHAIN
- - uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ - run: |
+ cargo fmt --all -- --check
- uses: actions/setup-java@v4
with:
@@ -157,7 +154,7 @@ jobs:
# os: ubuntu-latest
- target: x86_64-apple-darwin
- os: macos-latest
+ os: macos-13
- target: aarch64-apple-darwin
os: macos-14