diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 5196c852..fb2cb291 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -21,6 +21,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Cache SwiftPM packages + uses: actions/cache@v3 + with: + path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version - name: Build @@ -34,6 +41,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Cache SwiftPM packages + uses: actions/cache@v3 + with: + path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version - name: Build diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 004c8b67..e5d15b3e 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -12,6 +12,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Cache SwiftPM packages + uses: actions/cache@v3 + with: + path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version - name: Build diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 09a53a8e..1ce9dba6 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -12,6 +12,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Cache SwiftPM packages + uses: actions/cache@v3 + with: + path: ~/Library/Developer/Xcode/DerivedData/ipatool*/SourcePackages/ + key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- - name: Inject version run: ./Scripts/version - name: Build