diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index d73611a54..b1200f331 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -1,3 +1,6 @@ +## Run the TaskChampion tests, using both the minimum supported rust version +## and the latest stable Rust. + name: tests - rust on: diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 53b821605..b83bf2403 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,3 +1,5 @@ +## Run the Taskwarrior tests, using stable rust to build TaskChampion. + name: tests on: [push, pull_request] jobs: @@ -46,6 +48,23 @@ jobs: continue-on-error: ${{ matrix.continue-on-error == true }} steps: - uses: actions/checkout@v2 + + - name: Cache cargo registry + uses: actions/cache@v2 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-stable-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + + - name: Cache cargo build + uses: actions/cache@v2 + with: + path: target + key: ${{ runner.os }}-stable-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + + - uses: actions-rs/toolchain@v1 + with: + toolchain: "stable" + override: true - name: Build ${{ matrix.name }} env: DOCKER_REGISTRY: docker.pkg.github.com