Skip to content

Commit

Permalink
ci: use build caches
Browse files Browse the repository at this point in the history
  • Loading branch information
KKK669 committed Oct 11, 2023
1 parent b95c9d1 commit f53a7e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
container: swiftlang/swift:nightly-main-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- run: swift --version
- run: swift build
- run: swift test
Expand Down

0 comments on commit f53a7e2

Please sign in to comment.