From cc8a4484e41dc1502b57eff36085da7970deb3a6 Mon Sep 17 00:00:00 2001 From: Builditluc <37375448+Builditluc@users.noreply.github.com> Date: Sat, 22 Apr 2023 17:10:11 +0200 Subject: [PATCH 1/2] add rust toolchain file --- rust-toolchain | 1 + 1 file changed, 1 insertion(+) create mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 00000000..902c7418 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.65.0 From 3a156ee0e31a3a1e29a758466d6e94708efc35d2 Mon Sep 17 00:00:00 2001 From: Builditluc <37375448+Builditluc@users.noreply.github.com> Date: Sat, 22 Apr 2023 17:10:41 +0200 Subject: [PATCH 2/2] reduce toolchain profile in ci workflow --- .github/workflows/ci.yml | 44 ++++++++-------------------------------- 1 file changed, 8 insertions(+), 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbe043cf..c9e9037d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,18 +8,11 @@ jobs: build: name: Build runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} - override: true + profile: minimal - uses: actions-rs/cargo@v1 with: command: build @@ -28,38 +21,24 @@ jobs: check: name: Clippy Check runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} + with: + profile: minimal components: clippy - override: true - - uses: actions-rs/clippy-check@v1 + - uses: actions-rs/cargo@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} + command: clippy test: name: Run Tests runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} - override: true + profile: minimal - uses: actions-rs/cargo@v1 with: command: test @@ -68,19 +47,12 @@ jobs: format: name: Check formatting runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} + with: + profile: minimal components: rustfmt - override: true - uses: actions-rs/cargo@v1 with: command: fmt