1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

ci: more adjustments for actions/cache@v2

This commit is contained in:
Wez Furlong 2020-10-10 07:29:17 -07:00
parent 4c639c1d54
commit 2463510a88
37 changed files with 256 additions and 482 deletions

View File

@ -59,21 +59,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos7-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -69,21 +69,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos7-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -56,21 +56,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos7-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos7-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -46,21 +46,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos8-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -66,21 +66,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos8-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -43,21 +43,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "centos8-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "centos8-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -46,21 +46,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian10.3-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -66,21 +66,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian10.3-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -43,21 +43,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian10.3-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian10.3-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -65,21 +65,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian9.12-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -83,21 +83,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian9.12-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -62,21 +62,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "debian9.12-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "debian9.12-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -40,21 +40,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora31-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -52,21 +52,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora31-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -37,21 +37,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora31-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora31-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -40,21 +40,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora32-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -52,21 +52,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora32-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -37,21 +37,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "fedora32-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "fedora32-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -42,21 +42,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "macos-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -42,21 +42,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "macos-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -39,21 +39,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "macos-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "macos-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -40,21 +40,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu16-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "sudo -n ./get-deps"

View File

@ -52,21 +52,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu16-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -37,21 +37,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu16-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu16-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "sudo -n ./get-deps"

View File

@ -40,21 +40,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu18-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "sudo -n ./get-deps"

View File

@ -52,21 +52,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu18-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -37,21 +37,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu18-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu18-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "sudo -n ./get-deps"

View File

@ -46,21 +46,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu19.10-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -66,21 +66,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu19.10-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -43,21 +43,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu19.10-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu19.10-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -46,21 +46,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu20.04-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -66,21 +66,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu20.04-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |

View File

@ -43,21 +43,15 @@ jobs:
toolchain: "stable"
override: true
components: "rustfmt"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "ubuntu20.04-None-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "ubuntu20.04-None-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: "./get-deps"

View File

@ -35,21 +35,15 @@ jobs:
override: true
components: "rustfmt"
target: "x86_64-pc-windows-msvc"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "windows-x86_64-pc-windows-msvc-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Check formatting"
shell: bash
run: "cargo fmt --all -- --check"

View File

@ -39,21 +39,15 @@ jobs:
override: true
components: "rustfmt"
target: "x86_64-pc-windows-msvc"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "windows-x86_64-pc-windows-msvc-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Build (Release mode)"
shell: cmd
run: |

View File

@ -32,21 +32,15 @@ jobs:
override: true
components: "rustfmt"
target: "x86_64-pc-windows-msvc"
- name: "Cache cargo registry"
- name: "Cache cargo"
uses: actions/cache@v2
with:
path: "~/.cargo/registry"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
- name: "Cache cargo index"
uses: actions/cache@v2
with:
path: "~/.cargo/git"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
- name: "Cache cargo build"
uses: actions/cache@v2
with:
path: "target"
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
path: |
~/.cargo/registry
~/.cargo/git
target
key: "windows-x86_64-pc-windows-msvc-1-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Build (Release mode)"
shell: cmd
run: |

View File

@ -198,7 +198,7 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git
def install_rust(self):
salt = "1"
key_prefix = (
f"{self.name}-{self.rust_target}-{salt}-${{{{ hashFiles('Cargo.lock') }}}}"
f"{self.name}-{self.rust_target}-{salt}-${{{{ runner.os }}}}-${{{{ hashFiles('**/Cargo.lock') }}}}"
)
params = {
"profile": "minimal",
@ -213,19 +213,9 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git
name="Install Rust", action="actions-rs/toolchain@v1", params=params,
),
CacheStep(
name="Cache cargo registry",
path="~/.cargo/registry",
key=f"{key_prefix}-cargo-registry",
),
CacheStep(
name="Cache cargo index",
path="~/.cargo/git",
key=f"{key_prefix}-cargo-index",
),
CacheStep(
name="Cache cargo build",
path="target",
key=f"{key_prefix}-cargo-build-target",
name="Cache cargo",
path="~/.cargo/registry\n~/.cargo/git\ntarget",
key=f"{key_prefix}-cargo",
),
]