Skip to content

Commit

Permalink
ci: update unmaintained actions (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jul 16, 2024
1 parent 0af78a9 commit c1ef91e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
audit-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: rust audit
uses: actions-rs/audit-check@v1
- uses: actions/checkout@v4
- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
26 changes: 10 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ jobs:

runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.platform.target }}
targets: ${{ matrix.platform.target }}
toolchain: ${{ matrix.rust_version }}

- name: Install Gtk (ubuntu only)
Expand Down Expand Up @@ -108,13 +108,13 @@ jobs:
!contains(matrix.platform.target, 'ios'))
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
if: (
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios'))
with:
toolchain: nightly
target: ${{ matrix.platform.target }}
targets: ${{ matrix.platform.target }}
components: miri

- name: Run tests with miri
Expand All @@ -127,17 +127,15 @@ jobs:
test_tao_macros:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache cargo folder
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable

- name: Run tests
shell: bash
Expand All @@ -147,12 +145,8 @@ jobs:
name: fmt check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check
2 changes: 1 addition & 1 deletion .github/workflows/covector-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: covector status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
successfulPublish: ${{ steps.covector.outputs.successfulPublish }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: cargo login
Expand Down

0 comments on commit c1ef91e

Please sign in to comment.