From 5d5755b05425db5c85978578461a07bda62fc124 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 15 Jan 2025 23:45:51 +0800 Subject: [PATCH] enable build cache on ci --- .github/workflows/android.yml | 2 ++ .github/workflows/cross_musl.yml | 2 ++ .github/workflows/fedora.yml | 1 + .github/workflows/iphoneos.yml | 2 ++ .github/workflows/linux.yml | 1 + .github/workflows/macos.yml | 1 + .github/workflows/wasm.yml | 2 ++ .github/workflows/windows.yml | 2 ++ 8 files changed, 13 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index f2e9225d6..6f537b925 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -17,6 +17,8 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true + build-cache-key: 'Android' - name: Prepare run: | diff --git a/.github/workflows/cross_musl.yml b/.github/workflows/cross_musl.yml index 39c80df20..e36f72eed 100644 --- a/.github/workflows/cross_musl.yml +++ b/.github/workflows/cross_musl.yml @@ -18,6 +18,8 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true + build-cache-key: ${{ matrix.cross }} - name: Installation run: | diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml index 8ad465b77..134fde95b 100644 --- a/.github/workflows/fedora.yml +++ b/.github/workflows/fedora.yml @@ -24,6 +24,7 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true - name: Tests env: diff --git a/.github/workflows/iphoneos.yml b/.github/workflows/iphoneos.yml index a0d25eab9..ea738f41a 100644 --- a/.github/workflows/iphoneos.yml +++ b/.github/workflows/iphoneos.yml @@ -17,6 +17,8 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true + build-cache-key: 'iOS' - name: Tests run: | diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index ba6db0c99..73e37e58e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,6 +17,7 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true - name: Tests run: | diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b564487ed..9919cc173 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -17,6 +17,7 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true - name: Tests run: | diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 0f823793b..d2826785e 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -17,6 +17,8 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true + build-cache-key: 'Wasm' - name: Tests run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 744bdab23..77b516c32 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,6 +18,8 @@ jobs: - uses: xmake-io/github-action-setup-xmake@v1 with: xmake-version: branch@dev + build-cache: true + build-cache-key: ${{ matrix.arch }} - name: Tests run: |