Skip to content

Commit

Permalink
[ci] Fix custom compiler on macOS and reduce cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
ntadej committed Oct 29, 2023
1 parent 815a70f commit baaa2bc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: Android_QMapLibre_${{ matrix.config.abi }}
max-size: 200M

- name: Build QMapLibre
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: Linux_QMapLibre_${{ matrix.qt_version }}_${{ matrix.compiler }}
max-size: 200M

- name: Build QMapLibre (Qt5)
if: matrix.qt_series == 5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: Windows_QMapLibre_${{ matrix.config.qtarch }}
max-size: 200M

- name: Build QMapLibre
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: iOS_QMapLibre
max-size: 200M

- name: Use custom version of ccache
- name: Use latest version of ccache
run: |
sed -i.bak -e 's/ccache\/ccache\.git/ntadej\/ccache.git/' -e 's/master/xarch/' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ccache.rb
brew unlink ccache
brew install ccache --HEAD
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
- name: Setup compiler (macOS)
if: matrix.compiler != 'default'
run: |
brew install --overwrite [email protected]
brew install "$COMPILER"
echo "/usr/local/opt/${COMPILER}/bin" >> "$GITHUB_PATH"
{
Expand All @@ -114,6 +115,7 @@ jobs:
uses: hendrikmuhs/ccache-action@v1
with:
key: macOS_QMapLibre_${{ matrix.qt_version }}_${{ matrix.compiler }}
max-size: 200M

- name: Build QMapLibre (Qt5)
if: matrix.qt_series == 5
Expand Down

0 comments on commit baaa2bc

Please sign in to comment.