Skip to content

Commit 950fbff

Browse files
authored
chore(ci): enable sccache for Meson Windows builds (#761)
1 parent 6452715 commit 950fbff

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/rc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# under the License.
1717

1818
name: RC
19+
1920
on:
2021
push:
2122
tags:

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,20 @@ jobs:
156156
run: |
157157
echo "CC=${{ matrix.CC }}" >> $GITHUB_ENV
158158
echo "CXX=${{ matrix.CXX }}" >> $GITHUB_ENV
159+
- name: Setup sccache
160+
if: ${{ startsWith(matrix.runs-on, 'windows') }}
161+
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
162+
- name: Enable sccache
163+
if: ${{ startsWith(matrix.runs-on, 'windows') }}
164+
shell: bash
165+
run: echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV"
159166
- name: Build Iceberg
160167
run: |
161168
meson setup builddir ${{ matrix.meson-setup-args || '' }}
162169
meson compile -C builddir
170+
- name: Show sccache stats
171+
if: ${{ startsWith(matrix.runs-on, 'windows') }}
172+
run: sccache --show-stats
163173
- name: Test Iceberg
164174
run: |
165175
meson test -C builddir --timeout-multiplier 0 --print-errorlogs

0 commit comments

Comments
 (0)