Skip to content

Commit 4eca23a

Browse files
committed
Reduce ICU cache size by not including src dir
1 parent 5caccb2 commit 4eca23a

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/build-project.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,16 @@ jobs:
123123
- uses: actions/cache@v4
124124
id: icu-cache
125125
with:
126-
path: ${{ github.workspace }}/build_macos/ICU_build-prefix
127-
key: ${{ runner.os }}-icu-${{ needs.check-event.outputs.config }}-${{ matrix.architecture }}
126+
path: |
127+
${{ github.workspace }}/build_macos/ICU_build-prefix/bin
128+
${{ github.workspace }}/build_macos/ICU_build-prefix/include
129+
${{ github.workspace }}/build_macos/ICU_build-prefix/lib
130+
${{ github.workspace }}/build_macos/ICU_build-prefix/sbin
131+
${{ github.workspace }}/build_macos/ICU_build-prefix/share
132+
${{ github.workspace }}/build_macos/ICU_build-prefix/tmp
133+
key: ${{ runner.os }}-icu-build-${{ needs.check-event.outputs.config }}-${{ matrix.architecture }}
128134
restore-keys: |
129-
${{ runner.os }}-icu-${{ matrix.architecture }}-
135+
${{ runner.os }}-icu-build-${{ matrix.architecture }}-
130136
131137
- uses: actions-rust-lang/setup-rust-toolchain@v1
132138
if: matrix.architecture == 'arm64'
@@ -161,6 +167,7 @@ jobs:
161167
codesignIdent: ${{ steps.codesign.outputs.codesignIdent }}
162168
env:
163169
MACOS_ARCH: ${{ matrix.architecture }}
170+
GITHUB_WORKSPACE: ${{ github.workspace }}
164171

165172
- name: Package Plugin 📀
166173
uses: ./.github/actions/package-plugin

CMakePresets.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
"description": "Build for macOS 12.0+ (Universal binary) for CI",
4141
"generator": "Xcode",
4242
"cacheVariables": {
43-
"CMAKE_COMPILE_WARNING_AS_ERROR": true
43+
"CMAKE_COMPILE_WARNING_AS_ERROR": true,
44+
"USE_SYSTEM_ICU": true,
45+
"CMAKE_PREFIX_PATH": "$penv{GITHUB_WORKSPACE}/build_macos/ICU_build-prefix"
4446
}
4547
},
4648
{

0 commit comments

Comments
 (0)