From 636521090ee860f4abf057b6b66a600b5fdb5faa Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 25 Jan 2023 17:35:31 +0100 Subject: [PATCH] Replace uses of unmaintained actions-rs/cargo --- .github/workflows/docs.yml | 15 ++++++--------- .github/workflows/test.yml | 14 +++----------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 91f421f0..50ebcb52 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -48,15 +48,12 @@ jobs: # Nightly is needed to document the SIMD feature and for the # `doc_auto_cfg` feature uses: dtolnay/rust-toolchain@nightly - - name: Build all targets - uses: actions-rs/cargo@v1 - with: - command: doc - # Don't use --all-features here as that will enable a whole bunch of - # conflicting iced features. We also don't want to use `--workspace` - # here because that would also document our plugins and binary crates. - args: >- - --features docs,simd,standalone,zstd --no-deps + - name: Generate documentation for all targets + # Don't use --all-features here as that will enable a whole bunch of + # conflicting iced features. We also don't want to use `--workspace` + # here because that would also document our plugins and binary crates. + run: >- + cargo doc --features docs,simd,standalone,zstd --no-deps -p nih_plug -p nih_plug_derive -p nih_plug_egui diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2145d18a..5b98cc25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -52,15 +52,7 @@ jobs: - name: Set up Rust toolchain # Needed for SIMD uses: dtolnay/rust-toolchain@nightly - - name: Build all targets - uses: actions-rs/cargo@v1 - with: - command: build - # Don't use --all-features as that will enable a whole bunch of - # conflicting iced features - args: --workspace --features "simd,standalone,zstd" - name: Run the tests - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace + # Don't use --all-features as that will enable a whole bunch of + # conflicting iced features + run: cargo test --workspace --features "simd,standalone,zstd"