Skip to content

Commit

Permalink
Fix usage of outdated GH actions for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharparam committed Aug 19, 2023
1 parent c919270 commit 9f599d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 30 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/audit-check@v1
- uses: dtolnay/rust-toolchain@stable
- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ github.token }}
12 changes: 4 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Setup Hugo
Expand All @@ -34,15 +36,9 @@ jobs:
- name: Setup pandoc
uses: nikeee/setup-pandoc@v1
- name: Generate docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --release --workspace
run: cargo doc --release --workspace --all-features
- name: Generate manpages
uses: actions-rs/cargo@v1
with:
command: xtask
args: man
run: cargo xtask-ci man
- name: Copy generated docs to static/doc
run: cp -r target/doc/* site/static/doc
- name: Prepare man directory
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@ jobs:
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
- name: Run cargo fmt
run: cargo fmt --all --check --verbose
- uses: clechasseur/rs-clippy-check@v2
with:
command: fmt
args: --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ jobs:
- nightly
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Cache dependencies
uses: actions/cache@v3
env:
Expand All @@ -45,12 +43,6 @@ jobs:
target
key: ${{ runner.os }}-build-${{ matrix.rust }}-${{ env.cache-name }}-${{ hashFiles('Cargo.lock') }}
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --verbose
run: cargo build --release --all-features --verbose
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --verbose
run: cargo test --all-features --verbose

0 comments on commit 9f599d7

Please sign in to comment.