Skip to content

Commit 1002771

Browse files
author
xi xiao
committed
ci: update github action steps
1 parent 6b9ee90 commit 1002771

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/pr-ci-merge-main.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
rust-version: stable
14+
rust-version: [stable]
1515

1616
steps:
1717
# Step 1: Checkout Code
@@ -46,13 +46,13 @@ jobs:
4646
restore-keys: |
4747
${{ runner.os }}-cargo-build-
4848
49-
# Step 5: Set up Rust Toolchain
49+
# Step 5: Set up Rust Toolchain using rust-lang/setup-rust@v1
5050
- name: Set up Rust
51-
uses: actions-rs/toolchain@v1
51+
uses: rust-lang/setup-rust@v1
5252
with:
53-
toolchain: ${{ matrix.rust-version }}
54-
components: rustfmt clippy
55-
override: true
53+
rust-version: ${{ matrix.rust-version }} # Specifies Rust version from the matrix
54+
components: rustfmt, clippy # Components are now comma-separated
55+
default: true # Sets this toolchain as default
5656

5757
# Step 6: Run Clippy
5858
- name: Run Clippy
@@ -78,11 +78,3 @@ jobs:
7878
run: |
7979
cargo install cargo-deny
8080
cargo deny check
81-
82-
# # Step X: Deploy Documentation to GitHub Pages (Optional)
83-
# - name: Deploy to GitHub Pages
84-
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
85-
# uses: peaceiris/actions-gh-pages@v3
86-
# with:
87-
# github_token: ${{ secrets.GITHUB_TOKEN }}
88-
# publish_dir: ./target/doc

.github/workflows/release-please-main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: release-please
2+
13
on:
24
push:
35
branches:
@@ -7,8 +9,6 @@ permissions:
79
contents: write
810
pull-requests: write
911

10-
name: release-please
11-
1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)