From 4c70546905344287db2d93ad0a5f5edfe986e0cf Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Wed, 5 May 2021 20:16:07 +0530 Subject: [PATCH] update ci yml switch back to swatinem cache switch rustc back to stable --- .github/workflows/ci.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfdd114..610845c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,6 @@ jobs: args: --all -- --check - name: Run Cargo clippy uses: actions-rs/cargo@v1 - # continue-on-error: true with: command: clippy args: -- -D warnings @@ -88,16 +87,8 @@ jobs: toolchain: stable target: ${{ matrix.target }} override: true - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ~/.cargo/bin - ~/.cargo/.crates2.json - ~/.cargo/.crates.toml - target - key: ${{ runner.os }}-aarch64-unknown-linux-gnu-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Rust Cache + uses: Swatinem/rust-cache@v1.2.0 - name: Compile uses: actions-rs/cargo@v1 with: @@ -108,7 +99,6 @@ jobs: build-ppc: name: Build PowerPC Binaries if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) - continue-on-error: true runs-on: ubuntu-18.04 needs: [check, test, lints] steps: @@ -118,16 +108,8 @@ jobs: toolchain: stable target: powerpc64-unknown-linux-gnu override: true - - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ~/.cargo/bin - ~/.cargo/.crates2.json - ~/.cargo/.crates.toml - target - key: ${{ runner.os }}-powerpc64-unknown-linux-gnu-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Rust Cache + uses: Swatinem/rust-cache@v1.2.0 - name: Install PowerPC gcc run: | sudo apt-get install -y gcc-powerpc64-linux-gnu @@ -149,7 +131,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: 1.50.0 + toolchain: stable target: x86_64-unknown-linux-gnu override: true - name: Rust Cache