commit 762fd263bbdee05c695979d01071701f35c402d0
parent 7f278fb63060e950cc686cb8ec2d05b47c37dcd2
Author: William Casarin <jb55@jb55.com>
Date: Wed, 27 Nov 2024 17:00:56 -0800
github: remove deprecated actions
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
2 files changed, 9 insertions(+), 37 deletions(-)
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
@@ -23,12 +23,8 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- - name: Setup Rust
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
+ - name: Rust toolchain
+ uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
@@ -38,16 +34,10 @@ jobs:
run: ${{ inputs.additional-setup }}
- name: Run Tests
- uses: actions-rs/cargo@v1
- with:
- command: test
- args: --release
+ run: cargo test --release
- name: Build
- uses: actions-rs/cargo@v1
- with:
- command: build
- args: --release
+ run: cargo build --release
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
@@ -8,34 +8,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
components: rustfmt
- - uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ - run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
components: clippy
-
- - uses: Swatinem/rust-cache@v2
- - uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: -- -D warnings
+ - run: cargo clippy -- -D warnings
linux-build-test:
name: Build and Test (Linux)
@@ -125,11 +111,7 @@ jobs:
# Set up Rust
- name: Setup Rust
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
+ uses: dtolnay/rust-toolchain@stable
# create-dmg and cargo-bundle caching
- name: Rust cache