From 697837053d22d895fc24f5fe4c8bde0860184687 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 19 Mar 2023 12:45:13 +0100 Subject: build: Replace unmaintained action (#210) * build: Replace unmaintained action Replaces actions-rs/toolchain with dtolnay/rust-toolchain and updates some more code in the process. * build: Do format check by invoking cargo directly Instead of relying on unmaintained and outdated action * build: Replace action for getting rust toolchain Use dtolnay/rust-toolchain instead of unmaintained actions-rs/toolchain * build: Replace action for getting rust toolchain Use dtolnay/rust-toolchain instead of unmaintained actions-rs/toolchain * build: Replace action for getting rust toolchain Use dtolnay/rust-toolchain instead of unmaintained actions-rs/toolchain * fix: Correct syntax error --- .github/workflows/push-test.yml | 19 ++++++------------- .github/workflows/release.yml | 2 +- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index 72fd98bb..f8217a45 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -20,27 +20,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path src-tauri/Cargo.toml --all -- --check + components: rustfmt + - name: Format check + run: cargo fmt --manifest-path src-tauri/Cargo.toml --all -- --check # Ensure committed bindings correct autogen-ts-bindings-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: install dependencies (ubuntu only) run: | sudo apt-get update @@ -79,8 +73,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 - - name: install Rust stable - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@stable with: toolchain: stable - name: install dependencies (ubuntu only) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8223d35..349e56e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: with: node-version: 16 - name: install Rust stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - name: install dependencies (ubuntu only) -- cgit v1.2.3