Skip to content

Commit 6e3f51f

Browse files
committed
[INFRA] Use action for cache setup
1 parent 4b8c206 commit 6e3f51f

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

.github/workflows/ci_coverage.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,8 @@ jobs:
4444
with:
4545
fetch-depth: 0
4646

47-
- name: Load ccache
48-
uses: actions/cache@v4
49-
with:
50-
path: /home/runner/.ccache
51-
key: ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}-${{ github.ref }}-${{ github.run_id }}
52-
restore-keys: |
53-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}-${{ github.ref }}
54-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}
47+
- name: Setup cache
48+
uses: seqan/actions/setup-actions-cache@main
5549

5650
- name: Increase ccache size
5751
run: echo "CCACHE_MAXSIZE=300M" >> "${GITHUB_ENV}"

.github/workflows/ci_linux.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,8 @@ jobs:
4545
- name: Checkout
4646
uses: actions/checkout@v4
4747

48-
- name: Load ccache
49-
uses: actions/cache@v4
50-
with:
51-
path: /home/runner/.ccache
52-
key: ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}-${{ github.ref }}-${{ github.run_id }}
53-
restore-keys: |
54-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}-${{ github.ref }}
55-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.compiler }}
48+
- name: Setup cache
49+
uses: seqan/actions/setup-actions-cache@main
5650

5751
- name: Configure tests
5852
run: |

.github/workflows/ci_misc.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,8 @@ jobs:
4646
- name: Checkout
4747
uses: actions/checkout@v4
4848

49-
- name: Load ccache
50-
uses: actions/cache@v4
51-
with:
52-
path: /home/runner/.ccache
53-
key: ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.build }}-${{ matrix.compiler }}-${{ github.ref }}-${{ github.run_id }}
54-
restore-keys: |
55-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.build }}-${{ matrix.compiler }}-${{ github.ref }}
56-
ccache-${{ runner.os }}-${{ github.workflow }}-${{ matrix.build }}-${{ matrix.compiler }}
49+
- name: Setup cache
50+
uses: seqan/actions/setup-actions-cache@main
5751

5852
- name: Configure tests
5953
run: |

0 commit comments

Comments
 (0)