diff options
-rw-r--r-- | .github/workflows/deploy.yml | 11 | ||||
-rw-r--r-- | .github/workflows/tests.yml | 10 |
2 files changed, 12 insertions, 9 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7e3c2ae..420afd2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,15 +39,6 @@ jobs: - name: Setup | Checkout uses: actions/checkout@v2 - # Cache files between builds - - name: Setup | Cache Cargo - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Setup | Rust uses: actions-rs/toolchain@v1 with: @@ -56,6 +47,8 @@ jobs: profile: minimal target: ${{ matrix.target }} + - uses: Swatinem/rust-cache@v1 + - name: Setup | musl tools if: matrix.target == 'x86_64-unknown-linux-musl' run: sudo apt install -y musl-tools diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 563aab0..82a9734 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,11 @@ on: [push, pull_request] env: RUSTFLAGS: -Dwarnings + CARGO_INCREMENTAL: 0 + CARGO_NET_RETRY: 10 + CI: 1 + RUST_BACKTRACE: short + RUSTUP_MAX_RETRIES: 10 jobs: build_and_test: @@ -21,8 +26,11 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.rust }} + profile: minimal override: true + - uses: Swatinem/rust-cache@v1 + - name: check uses: actions-rs/cargo@v1 with: @@ -46,6 +54,8 @@ jobs: components: rustfmt, clippy override: true + - uses: Swatinem/rust-cache@v1 + - name: fmt run: cargo fmt --all -- --check |