From fec1e8d9ee7580fa92322753b5dbc2f62d04a150 Mon Sep 17 00:00:00 2001 From: Sean OMeara Date: Wed, 14 Dec 2022 12:33:56 +0100 Subject: [PATCH] cargo cache --- .github/workflows/build.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83b35ccc6..0f55d1618 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,11 +4,12 @@ jobs: build_ubuntu: runs-on: ubuntu-latest steps: + - name: gitconfig run: | git config --global core.autocrlf false git config --global core.eol lf - + - name: checkout uses: actions/checkout@v3 @@ -29,15 +30,15 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - + - name: Lint run: | cargo fmt --all -- --check - cargo clippy -- -D warnings - + cargo clippy -- -D warnings + - name: make run: make @@ -51,7 +52,7 @@ jobs: run: | git config --global core.autocrlf false git config --global core.eol lf - + - name: checkout uses: actions/checkout@v3 @@ -72,14 +73,14 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - + - name: Lint run: | cargo fmt --all -- --check - cargo clippy -- -D warnings + cargo clippy -- -D warnings - name: make run: make @@ -90,15 +91,15 @@ jobs: build_windows: runs-on: windows-latest steps: - + - name: gitconfig run: | git config --global core.autocrlf false git config --global core.eol lf - + - name: checkout uses: actions/checkout@v3 - + - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -116,14 +117,14 @@ jobs: ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ - target/ + target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- - + - name: Lint run: | cargo fmt --all -- --check - cargo clippy -- -D warnings + cargo clippy -- -D warnings - name: setup msbuild uses: microsoft/setup-msbuild@v1.1.3