diff options
| author | jvoisin | 2023-07-05 01:01:33 +0200 |
|---|---|---|
| committer | jvoisin | 2023-07-05 01:14:41 +0200 |
| commit | a8f6f7a21f687dd99175591ff5b3a1d708f67cbe (patch) | |
| tree | 35b51811a6e995f43e72d69e5d3126ac644a2e71 /.github | |
| parent | e0f804dc4e3da5c078ced2c10d53f36bb7b109b4 (diff) | |
Cache musl-toolchain download
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/testsuite.yaml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml index 56a6716..4499452 100644 --- a/.github/workflows/testsuite.yaml +++ b/.github/workflows/testsuite.yaml | |||
| @@ -11,9 +11,17 @@ jobs: | |||
| 11 | steps: | 11 | steps: |
| 12 | - name: Checking out the code | 12 | - name: Checking out the code |
| 13 | uses: actions/checkout@v3 | 13 | uses: actions/checkout@v3 |
| 14 | - name: Cache musl toolchain | ||
| 15 | uses: actions/cache@v3 | ||
| 16 | id: cache-musl | ||
| 17 | with: | ||
| 18 | path: x86_64-linux-musl-native | ||
| 19 | key: musl | ||
| 14 | - name: Downloading musl-based toolchain | 20 | - name: Downloading musl-based toolchain |
| 15 | run: wget https://musl.cc/x86_64-linux-musl-native.tgz | 21 | if: steps.cache-musl.outputs.cache-hit != 'true' |
| 22 | run: wget --quiet https://musl.cc/x86_64-linux-musl-native.tgz | ||
| 16 | - name: Extracting musl-based toolchain | 23 | - name: Extracting musl-based toolchain |
| 24 | if: steps.cache-musl.outputs.cache-hit != 'true' | ||
| 17 | run: tar xzf ./x86_64-linux-musl-native.tgz | 25 | run: tar xzf ./x86_64-linux-musl-native.tgz |
| 18 | - name: Running the testsuite | 26 | - name: Running the testsuite |
| 19 | run: make -C tests gcc | grep -zqv FAIL | 27 | run: make -C tests gcc | grep -zqv FAIL |
