From 0f19089c58fb940791659e1c4b4e98795240df4e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 23:11:03 +0200 Subject: Cache the musl toolchain in the coverage step in the CI --- .github/workflows/coverage.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 94887f9..eaf5a87 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -24,9 +24,17 @@ jobs: steps: - name: Checking out the code uses: actions/checkout@v3 + - name: Cache musl toolchain + uses: actions/cache@v3 + id: cache-musl + with: + path: x86_64-linux-musl-native + key: musl - name: Downloading musl-based toolchain - run: wget https://musl.cc/x86_64-linux-musl-native.tgz + if: steps.cache-musl.outputs.cache-hit != 'true' + run: wget --quiet https://musl.cc/x86_64-linux-musl-native.tgz - name: Extracting musl-based toolchain + if: steps.cache-musl.outputs.cache-hit != 'true' run: tar xzf ./x86_64-linux-musl-native.tgz - name: Installing lcov run: sudo apt install lcov -- cgit v1.3