Skip to content

Commit

Permalink
Try irgaly/xcode-cache@v1
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid committed Nov 27, 2024
1 parent 8d82c90 commit 363c260
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache packages
uses: actions/cache@v3
id: packages-cache
with:
path: ~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-packages-${{ hashFiles('**/Package.resolved') }}
restore-keys: ${{ runner.os }}-packages-

- name: Cache packages
uses: irgaly/xcode-cache@v1
with:
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
swiftpm-cache-key: pillarbox-spm-${{ hashFiles('Package.resolved') }}
swiftpm-cache-restore-keys: pillarbox-spm-

- name: Run tests
run: |
make test-${{ matrix.platform }}
Expand Down Expand Up @@ -64,6 +80,14 @@ jobs:
${{ secrets.APP_STORE_CONNECT_API_KEY_B64 }} \
${{ secrets.APPLE_ACCOUNT_INFO_B64 }}
- name: Cache packages
uses: irgaly/xcode-cache@v1
with:
key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }}
restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-
swiftpm-cache-key: pillarbox-demo-spm-${{ hashFiles('Demo/**/Package.resolved') }}

Check failure on line 88 in .github/workflows/pull-request.yml

View workflow job for this annotation

GitHub Actions / 🔎 Check quality

88:81 [line-length] line too long (92 > 80 characters)
swiftpm-cache-restore-keys: pillarbox-demo-spm-

- name: Archive the demo
run: |
make archive-demo-${{ matrix.platform }}
Expand Down

0 comments on commit 363c260

Please sign in to comment.