From 3b746e285b1d498704ab58345ef08fbba85d3c4b Mon Sep 17 00:00:00 2001 From: Alexander Loren Date: Thu, 27 Aug 2026 11:39:02 -0700 Subject: [PATCH] Added caching the build artifacts --- .gitea/workflows/Build Debug Library.yml | 24 ++++++++++++++++++++++ .gitea/workflows/Build Release Library.yml | 24 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/.gitea/workflows/Build Debug Library.yml b/.gitea/workflows/Build Debug Library.yml index 00fcf69..5ff1bb2 100644 --- a/.gitea/workflows/Build Debug Library.yml +++ b/.gitea/workflows/Build Debug Library.yml @@ -16,6 +16,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- + - name: Build run: | swift build -Xswiftc -no-verify-emitted-module-interface @@ -41,6 +49,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- + - name: Build run: | swift build -Xswiftc -no-verify-emitted-module-interface @@ -74,6 +90,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- + - name: Build run: | swift build -Xswiftc -no-verify-emitted-module-interface diff --git a/.gitea/workflows/Build Release Library.yml b/.gitea/workflows/Build Release Library.yml index c100ed0..6ab54d5 100644 --- a/.gitea/workflows/Build Release Library.yml +++ b/.gitea/workflows/Build Release Library.yml @@ -15,6 +15,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- + - name: Build run: | swift build -c release -Xswiftc -no-verify-emitted-module-interface @@ -40,6 +48,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- + - name: Build run: | swift build -c release -Xswiftc -no-verify-emitted-module-interface @@ -72,6 +88,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Cache Build + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-swift-${{ hashFiles('Package.resolved') }} + restore-keys: | + ${{ runner.os }}-swift- - name: Build run: |