This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-rust-diesel-adapter.git


The following commit(s) were added to refs/heads/master by this push:
     new cbf4dad  ci: replace archived actions-rs actions with rustup/cargo
cbf4dad is described below

commit cbf4dadb42e0152202072cda45beed049379d1a7
Author: Yang Luo <[email protected]>
AuthorDate: Thu Aug 6 23:29:48 2026 +0800

    ci: replace archived actions-rs actions with rustup/cargo
---
 .github/workflows/ci.yml       | 55 +++++++++++-------------------------------
 .github/workflows/coverage.yml |  9 +++----
 2 files changed, 18 insertions(+), 46 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 990ba59..d609877 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,12 +22,11 @@ jobs:
         uses: actions/checkout@master
 
       - name: Install Rust toolchain
-        uses: actions-rs/toolchain@v1
-        with:
-          profile: minimal
-          toolchain: ${{ matrix.rust }}
-          components: rustfmt, clippy
-          override: true
+        shell: bash
+        run: |
+          rustup toolchain install ${{ matrix.rust }} --profile minimal 
--component rustfmt --component clippy --no-self-update
+          rustup default ${{ matrix.rust }}
+          rustc --version && cargo --version
 
       - name: Setup PostgreSQL & MySQL & SQLite (for ubuntu)
         if: matrix.os == 'ubuntu-latest'
@@ -77,54 +76,28 @@ jobs:
           echo "SQLITE3_LIB_DIR=C:\ProgramData\chocolatey\lib\SQLite\tools" >> 
$GITHUB_ENV
 
       - name: Cargo Build
-        uses: actions-rs/cargo@v1
-        with:
-          command: build
+        run: cargo build
 
       - name: Cargo Test For PostgreSQL,async-std
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features postgres,runtime-async-std
+        run: cargo test --no-default-features --features 
postgres,runtime-async-std
 
       - name: Cargo Test For PostgreSQL,tokio
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features postgres,runtime-tokio
+        run: cargo test --no-default-features --features postgres,runtime-tokio
 
       - name: Cargo Test For MySQL,async-std
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features mysql,runtime-async-std
+        run: cargo test --no-default-features --features 
mysql,runtime-async-std
 
       - name: Cargo Test For MySQL,tokio
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features mysql,runtime-tokio
+        run: cargo test --no-default-features --features mysql,runtime-tokio
 
       - name: Cargo Test For SQLite,async-std
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features sqlite,runtime-async-std
+        run: cargo test --no-default-features --features 
sqlite,runtime-async-std
 
       - name: Cargo Test For SQLite,tokio
-        uses: actions-rs/cargo@v1
-        with:
-          command: test
-          args: --no-default-features --features sqlite,runtime-tokio
+        run: cargo test --no-default-features --features sqlite,runtime-tokio
 
       - name: Cargo Clippy
-        uses: actions-rs/cargo@v1
-        with:
-          command: clippy
-          args: -- -D warnings
+        run: cargo clippy -- -D warnings
 
       - name: Cargo Fmt Check
-        uses: actions-rs/cargo@v1
-        with:
-          command: fmt
-          args: --all -- --check
\ No newline at end of file
+        run: cargo fmt --all -- --check
\ No newline at end of file
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index e049ee8..0ad3c47 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -29,11 +29,10 @@ jobs:
         uses: actions/checkout@master
 
       - name: Install Rust toolchain
-        uses: actions-rs/toolchain@v1
-        with:
-          profile: minimal
-          toolchain: stable
-          override: true
+        run: |
+          rustup set profile minimal
+          rustup update --no-self-update stable
+          rustup default stable
 
       - name: Install PostgreSQL Dependencies
         run: sudo apt-get install libpq-dev postgresql-client


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to