Skip to content

Commit 4d82ea7

Browse files
committed
add cache and disable sandbox
1 parent f6f9659 commit 4d82ea7

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: sandbox
20-
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
19+
- uses: actions/cache@v3
20+
with:
21+
path: .build
22+
key: ${{ runner.os }}-spm-release-${{ hashFiles('**/Package.resolved') }}
23+
restore-keys: |
24+
${{ runner.os }}-spm-release
2125
- name: Create XCFramework
2226
uses: unsignedapps/swift-create-xcframework@v2
2327

.github/workflows/swift.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: sandbox
20-
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
19+
- uses: actions/cache@v3
20+
with:
21+
path: .build
22+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
23+
restore-keys: |
24+
${{ runner.os }}-spm
2125
- name: Build
22-
run: swift build -v
26+
run: swift build -v --disable-sandbox
2327
- name: Run tests
2428
run: swift test -v

0 commit comments

Comments
 (0)