Skip to content

Commit

Permalink
feat: setup ccache for CI (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIhnatsiuk authored Nov 2, 2024
1 parent 8c86821 commit b0627c7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,24 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15.4"
xcode-version: "15.4"

- name: Setup
uses: ./.github/actions/setup

- name: Install Ccache
uses: hendrikmuhs/[email protected]
with:
max-size: 1.5G
key: ${{ runner.os }}-ccache-example-ios
create-symlink: true
- name: Setup ccache behavior
run: |
echo "CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros" >> $GITHUB_ENV
echo "CCACHE_FILECLONE=true" >> $GITHUB_ENV
echo "CCACHE_DEPEND=true" >> $GITHUB_ENV
echo "CCACHE_INODECACHE=true" >> $GITHUB_ENV
- name: Restore Pods cache
uses: actions/cache@v4
with:
Expand All @@ -51,7 +64,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
run: pod install
run: export USE_CCACHE=1 && pod install

- name: Install xcpretty
run: gem install xcpretty
Expand Down

0 comments on commit b0627c7

Please sign in to comment.