From 05aa8945ebcf4de6b4583954d21963d22aa6ce34 Mon Sep 17 00:00:00 2001 From: Ben Rosen Date: Thu, 27 Aug 2026 15:16:28 -0500 Subject: [PATCH 1/3] Run tests --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ab6a36 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + tests: + runs-on: ubuntu-latest + container: swift:6.2 + steps: + - uses: actions/checkout@v4 + + - name: Build + run: swift build --build-tests + + - name: Run tests + run: swift test --skip-build From a7a7049c4b10ce402b62f4fca95d146129f7c238 Mon Sep 17 00:00:00 2001 From: Ben Rosen Date: Thu, 27 Aug 2026 15:29:20 -0500 Subject: [PATCH 2/3] cache spm artifacts --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ab6a36..d94470f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,18 @@ on: jobs: tests: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04-arm container: swift:6.2 steps: - uses: actions/checkout@v4 + - name: Cache SwiftPM + uses: actions/cache@v4 + with: + path: .build + key: spm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Package.resolved') }} + restore-keys: spm-${{ runner.os }}-${{ runner.arch }}- + - name: Build run: swift build --build-tests From fcb1cf28f17663866cf091ae79388465c9ad9c1f Mon Sep 17 00:00:00 2001 From: Ben Rosen Date: Thu, 27 Aug 2026 15:32:30 -0500 Subject: [PATCH 3/3] Revert "cache spm artifacts" This reverts commit a7a7049c4b10ce402b62f4fca95d146129f7c238. --- .github/workflows/ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d94470f..9ab6a36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,18 +8,11 @@ on: jobs: tests: - runs-on: ubuntu-24.04-arm + runs-on: ubuntu-latest container: swift:6.2 steps: - uses: actions/checkout@v4 - - name: Cache SwiftPM - uses: actions/cache@v4 - with: - path: .build - key: spm-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Package.resolved') }} - restore-keys: spm-${{ runner.os }}-${{ runner.arch }}- - - name: Build run: swift build --build-tests