mirror of
https://github.com/coteditor/CotEditor.git
synced 2026-05-17 12:40:36 +00:00
Cache package build in CI
This commit is contained in:
@@ -30,6 +30,13 @@ jobs:
|
||||
swift --version
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
- name: Cache SwiftPM build products
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: Packages/${{ matrix.package }}/.build
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-xcode-${{ env.XCODE_VERSION }}-spm-${{ matrix.package }}-${{ hashFiles(format('Packages/{0}/Package.swift', matrix.package), format('Packages/{0}/Package.resolved', matrix.package)) }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ runner.arch }}-xcode-${{ env.XCODE_VERSION }}-spm-${{ matrix.package }}-
|
||||
- name: Unit Test for ${{ matrix.package }}
|
||||
run: |
|
||||
swift test --package-path "Packages/${{ matrix.package }}"
|
||||
|
||||
Reference in New Issue
Block a user