diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 1e57c1d..cec81e2 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -10,5 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + cargo-${{ runner.os }}- - name: Build run: cargo build -p svg2gcode-cli diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index 5d674e7..21d18f9 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -29,6 +29,15 @@ jobs: crate: grcov version: 0.8.0 use-tool-cache: true + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + cargo-${{ runner.os }}- - uses: actions-rs/cargo@v1 with: command: build diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index a4b7c9b..3e19ebb 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -8,5 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }} + restore-keys: | + cargo-${{ runner.os }}- - name: Build run: cargo build -p svg2gcode-web