diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23e1b4bc..a6f3bb6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,13 @@ jobs: steps: - uses: actions/checkout@v2 - uses: dtolnay/rust-toolchain@1.13.0 + - name: Get timestamp for cache + id: date + run: echo ::set-output name=yearmo::$(date +%Y%m) + - uses: actions/cache@v1 + with: + path: ~/.cargo/registry/index + key: cargo-registry-index-${{steps.date.outputs.yearmo}} - run: cd serde && cargo build --features rc - run: cd serde && cargo build --no-default-features - run: cd serde_test && cargo build