Skip to content

Commit

Permalink
ci: don't use the unmaintained actions-rs actions
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Zak <[email protected]>
  • Loading branch information
rjzak committed Mar 3, 2024
1 parent e0fb222 commit b6dfd64
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 42 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
37 changes: 11 additions & 26 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: rustfmt
toolchain: nightly
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Setup Rust toolchain
run: rustup show && rustup update && rustup component add rustfmt
- name: cargo fmt
run: cargo fmt --all -- --check

clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
components: clippy
toolchain: nightly
profile: minimal
override: true
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
- name: Setup Rust toolchain
run: rustup show && rustup update && rustup component add clippy
- name: cargo clippy
run: cargo clippy --workspace --all-features --tests -- -D warnings

readme:
name: cargo readme
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true
- run: cargo install cargo-readme
- uses: dtolnay/rust-toolchain@stable
- run: cargo +stable install cargo-readme
- run: cargo readme > README.md && git diff --exit-code

check-spdx-headers:
name: spdx check
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }} --features=${{ matrix.features }}
- name: Install Rust
run: rustup toolchain install ${{ matrix.toolchain }}
- name: cargo test
run: cargo +${{ matrix.toolchain }} test --features=${{ matrix.features }} ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -47,14 +43,10 @@ jobs:
runs-on: [self-hosted, linux, sgx1]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.profile.flag }} --all-features
- name: Install Rust
run: rustup toolchain install ${{ matrix.toolchain }}
- name: cargo test
run: cargo +${{ matrix.toolchain }} test --all-features ${{ matrix.profile.flag }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit b6dfd64

Please sign in to comment.