From 902611df7a7df2e72bf3ddc50434fea8bac3cd65 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Fri, 7 Aug 2020 00:19:16 +0800 Subject: [PATCH] Cache cargo output --- .github/workflows/build-and-test.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index aa139757..73e847c6 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,6 +15,13 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build run: cargo build --features "aes-pmac-siv local-redir" --verbose - name: Run tests @@ -25,6 +32,13 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build run: cargo build --features "aes-pmac-siv openssl-vendored" --verbose - name: Run tests @@ -35,6 +49,13 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build run: cargo build --features "aes-pmac-siv local-redir" --verbose - name: Run tests