diff options
author | Cody P Schafer <dev@codyps.com> | 2020-12-13 15:42:12 -0500 |
---|---|---|
committer | Cody P Schafer <dev@codyps.com> | 2020-12-13 15:42:12 -0500 |
commit | b294d67b82d2d9597db982dc4c3e298bf3cf535b (patch) | |
tree | e4f94202a563292b6ac44b8fc389e78605c05371 /.github | |
parent | f5572fad38735f07030f106a2af892bdd49c99fa (diff) | |
download | rust-libzfs-b294d67b82d2d9597db982dc4c3e298bf3cf535b.zip |
include Cargo.lock and tweak caching
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 18 | ||||
-rw-r--r-- | .github/workflows/coverage.yml | 18 |
2 files changed, 14 insertions, 22 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d64a58..9d70f15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,25 +13,19 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/cache@v2 + - uses: actions-rs/toolchain@v1 with: - path: | - ~/.cargo/registry - ~/.cargo/git - target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} + profile: minimal + toolchain: beta + override: true + components: rustfmt, clippy + - uses: Swatinem/rust-cache@v1 - name: Install dependencies run: sudo apt install libzfslinux-dev zfsutils-linux - name: Setup test pool run: sudo ./zfs-core/test-prepare "${ZFS_TEMPFS}" - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: beta - override: true - components: rustfmt, clippy - uses: actions-rs/cargo@v1 with: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 1344565..13c8c86 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -12,22 +12,20 @@ jobs: ZFS_TEMPFS: tpool steps: - uses: actions/checkout@v1 - - uses: actions/cache@v2 + - name: Setup Rust Toolchain + uses: actions-rs/toolchain@v1 with: - path: | - ~/.cargo/registry - ~/.cargo/git - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} + toolchain: nightly + override: true + + - uses: Swatinem/rust-cache@v1 + - name: Install dependencies run: sudo apt install libzfslinux-dev zfsutils-linux - name: Setup test pool run: sudo ./zfs-core/test-prepare "${ZFS_TEMPFS}" - - name: Setup Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true + - name: Run tests & generate coverage info uses: actions-rs/cargo@v1 with: |