diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00b6a510b..071b73855 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,28 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: ${{ matrix.version }}-${{ matrix.toolchain }} - default: true + profile: minimal + override: true + + - name: Generate Cargo.lock + uses: actions-rs/cargo@v1 + with: + command: update + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ matrix.version }}-${{ matrix.toolchain }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ matrix.version }}-${{ matrix.toolchain }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ matrix.version }}-${{ matrix.toolchain }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} - name: checks uses: actions-rs/cargo@v1 diff --git a/.github/workflows/msrv.yml b/.github/workflows/msrv.yml index f96292e69..68f1fcecc 100644 --- a/.github/workflows/msrv.yml +++ b/.github/workflows/msrv.yml @@ -20,7 +20,27 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: 1.39.0-x86_64-unknown-linux-gnu - default: true + profile: minimal + override: true + - name: Generate Cargo.lock + uses: actions-rs/cargo@v1 + with: + command: update + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: msrv-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: msrv-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: msrv-cargo-build-${{ hashFiles('**/Cargo.lock') }} - name: checks uses: actions-rs/cargo@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d2da893a0..000000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: rust -cache: cargo -rust: - - stable - - beta - - nightly