diff options
-rw-r--r-- | .github/workflows/push-test.yml | 19 | ||||
-rw-r--r-- | .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) |