Skip to content

Commit

Permalink
Update GitHub Actions to latest major versions (#687)
Browse files Browse the repository at this point in the history
* Update GitHub Actions to latest major versions

* Revert rust-hack changes
  • Loading branch information
benjeffery authored Dec 11, 2024
1 parent 946b8d6 commit 598f8df
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2

- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
uses: peaceiris/actions-mdbook@v2.0.0
with:
mdbook-version: 'latest'

- run: mdbook build book

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4.0.0
if: github.event_name == 'release'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
name: Test (Miri)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4.2.2
- uses: actions-rs/toolchain@v1.0.6
with:
profile: minimal
toolchain: nightly
override: true
components: miri
- uses: actions-rs/cargo@v1
- uses: actions-rs/cargo@v1.0.1
with:
command: miri
args: test miri
4 changes: 2 additions & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the Repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

- name: Perform the security audit
uses: actions-rs/audit-check@v1
uses: actions-rs/audit-check@v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
- name: Install cargo-semver-checks
uses: baptiste0928/cargo-install@v3
uses: baptiste0928/cargo-install@v3.1.1
with:
crate: cargo-semver-checks
- name: run check-release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.5
- uses: taiki-e/install-action@cargo-hack
- name: Install Linux tooling for 32 bit builds
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.5
- uses: taiki-e/install-action@cargo-hack
- run: sudo apt-get update -y
if: matrix.os == 'ubuntu-latest'
Expand All @@ -48,7 +48,7 @@ jobs:
name: rust fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
Expand All @@ -67,12 +67,12 @@ jobs:
rust:
- stable
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.5
- uses: taiki-e/install-action@cargo-hack
- name: clippy (all targets, feature powerset)
run: cargo hack clippy --all-targets --feature-powerset -- -D warnings
Expand All @@ -85,7 +85,7 @@ jobs:
rust:
- 1.71.0
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
with:
access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: recursive
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@v2.7.5
- run: sudo apt-get update -y
if: matrix.os == 'ubuntu-latest'
- run: sudo apt-get install -y valgrind
Expand Down

0 comments on commit 598f8df

Please sign in to comment.