From 0817fb7014f32b0408937afe628ef5e323140359 Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Mon, 30 Sep 2024 09:31:59 -0300 Subject: [PATCH] cache linux builds --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28cd217d..c5b37f39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,15 @@ jobs: - uses: swift-actions/setup-swift@v2 with: swift-version: ${{ matrix.swift-version }} + - name: Cache derived data + uses: actions/cache@v3 + with: + path: | + ~/.build + key: | + ${{ runner.os }-spm-linux-${{ matrix.swift-verion }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift', '**/Package.resolved') }} + restore-keys: | + ${{ runner.os }-spm-linux-${{ matrix.swift-verion }}- - run: make dot-env - name: Run tests run: swift test --skip IntegrationTests