Update Taskwarrior workflows to include Rust
This commit is contained in:
committed by
Tomas Babej
parent
8c30400af3
commit
6a42cf00a2
3
.github/workflows/rust-tests.yml
vendored
3
.github/workflows/rust-tests.yml
vendored
@@ -1,3 +1,6 @@
|
|||||||
|
## Run the TaskChampion tests, using both the minimum supported rust version
|
||||||
|
## and the latest stable Rust.
|
||||||
|
|
||||||
name: tests - rust
|
name: tests - rust
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
19
.github/workflows/tests.yaml
vendored
19
.github/workflows/tests.yaml
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
## Run the Taskwarrior tests, using stable rust to build TaskChampion.
|
||||||
|
|
||||||
name: tests
|
name: tests
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
@@ -46,6 +48,23 @@ jobs:
|
|||||||
continue-on-error: ${{ matrix.continue-on-error == true }}
|
continue-on-error: ${{ matrix.continue-on-error == true }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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 }}
|
- name: Build ${{ matrix.name }}
|
||||||
env:
|
env:
|
||||||
DOCKER_REGISTRY: docker.pkg.github.com
|
DOCKER_REGISTRY: docker.pkg.github.com
|
||||||
|
|||||||
Reference in New Issue
Block a user