aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-19 12:45:13 +0100
committerGitHub <noreply@github.com>2023-03-19 11:45:13 +0000
commit697837053d22d895fc24f5fe4c8bde0860184687 (patch)
tree68a0d46cc705be5159e2c5e69ab4bfc74659d1b4
parent542b218afc424412cfa0509435fce6dafd568f3d (diff)
downloadFlightCore-697837053d22d895fc24f5fe4c8bde0860184687.tar.gz
FlightCore-697837053d22d895fc24f5fe4c8bde0860184687.zip
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
-rw-r--r--.github/workflows/push-test.yml19
-rw-r--r--.github/workflows/release.yml2
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)