From 8563492eb9538d4e20ac005cf01a8c5921591857 Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Wed, 4 May 2022 19:42:28 +0200 Subject: [PATCH 1/4] Add caching to workflows --- .github/workflows/main_workflow.yml | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index 9de0032..cb23035 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -13,6 +13,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Stable Toolchain uses: actions-rs/toolchain@v1 with: @@ -39,6 +50,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Stable Toolchain uses: actions-rs/toolchain@v1 with: @@ -65,6 +87,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Stable Toolchain uses: actions-rs/toolchain@v1 with: @@ -91,6 +124,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Stable Toolchain uses: actions-rs/toolchain@v1 with: @@ -118,6 +162,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Install Stable Toolchain uses: actions-rs/toolchain@v1 with: From d0f593540f56cfeda0c8a9a350ee890e866972f4 Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Wed, 4 May 2022 19:47:49 +0200 Subject: [PATCH 2/4] Change workflow name --- .github/workflows/main_workflow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index cb23035..9b57992 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -13,7 +13,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | @@ -50,7 +50,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | @@ -87,7 +87,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | @@ -124,7 +124,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | @@ -162,7 +162,7 @@ jobs: - name: Checkout sources uses: actions/checkout@v2 - - name: Cache + - name: Cache dependencies uses: actions/cache@v3 with: path: | From bce51e2bd7e99a9ad8780c55efe0afbc3d3a8627 Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Wed, 4 May 2022 19:51:11 +0200 Subject: [PATCH 3/4] Add sources to caching --- .github/workflows/main_workflow.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index 9b57992..4909424 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -20,6 +20,7 @@ jobs: ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ + ~/.cargo/registry/src/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} @@ -57,6 +58,7 @@ jobs: ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ + ~/.cargo/registry/src/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} @@ -94,6 +96,7 @@ jobs: ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ + ~/.cargo/registry/src/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} @@ -131,6 +134,7 @@ jobs: ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ + ~/.cargo/registry/src/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} @@ -169,6 +173,7 @@ jobs: ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ + ~/.cargo/registry/src/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} From cee5a79ffa18d95c5ca9e676770a2bfad7db63f7 Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Wed, 4 May 2022 19:55:40 +0200 Subject: [PATCH 4/4] Bogus change to test to run CI --- .github/workflows/main_workflow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index 4909424..ca69985 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3 @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3 @@ -87,7 +87,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3 @@ -125,7 +125,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3 @@ -164,7 +164,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3