Skip to content

Commit

Permalink
try cache for ios worklow
Browse files Browse the repository at this point in the history
  • Loading branch information
Okkoma committed Nov 5, 2024
1 parent f160e45 commit 8eac4be
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,26 @@ jobs:
platform:
- iOS
- tvOS
lib-type:
- static
env:
HOST: macOS
PLATFORM: ${{ matrix.platform }}
LIB_TYPE: static
LIB_TYPE: ${{ matrix.lib-type }}
steps:
- name: Checkout
uses: actions/checkout@v4
with: { fetch-depth: 0 }
- name: Source checksum
id: source_checksum
run: rake source_checksum
- name: Cache
uses: actions/cache@v4
with:
path: build
key: ${{ matrix.platform }}-${{ matrix.lib-type }}-cmake-${{ steps.source_checksum.outputs.hexdigest }}
restore-keys:
${{ matrix.platform }}-${{ matrix.lib-type }}-cmake-
- name: Select Xcode
run: sudo xcode-select --switch /Applications/Xcode_15.4.app
- name: CMake
Expand All @@ -45,6 +57,6 @@ jobs:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-static-all-rel
name: ${{ matrix.platform }}-${{ matrix.lib-type }}-all-rel
path: build/ci/*.tar.gz
if: github.event_name == 'push'

0 comments on commit 8eac4be

Please sign in to comment.