From 40c7a4ffa94e9b215306b15129078b26c5db929d Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 12:27:10 -0500 Subject: [PATCH 1/6] Add workflow for Ubuntu --- .github/workflows/swift.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 79b2d18..bbba62e 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -22,3 +22,15 @@ jobs: run: swift build -v - name: Run tests run: swift test -v + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v From 84b43e66824637bf2578e54c7f179d2c69a2fffc Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 12:31:17 -0500 Subject: [PATCH 2/6] Add job names --- .github/workflows/swift.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index bbba62e..8dc83b9 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -8,7 +8,7 @@ on: jobs: build: - + name: Build and test on macOS runs-on: macos-latest steps: @@ -24,7 +24,7 @@ jobs: run: swift test -v build: - + name: Build and test on Ubuntu runs-on: ubuntu-latest steps: From 7b5b8cbd6c63fca5e1808ee113e9f5d1e28cf29d Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 12:33:01 -0500 Subject: [PATCH 3/6] Update swift.yml --- .github/workflows/swift.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 8dc83b9..6201671 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -8,8 +8,7 @@ on: jobs: build: - name: Build and test on macOS - runs-on: macos-latest + runs-on: [ macos-latest, ubuntu-latest] steps: - name: Set Xcode version @@ -22,15 +21,3 @@ jobs: run: swift build -v - name: Run tests run: swift test -v - - build: - name: Build and test on Ubuntu - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v From 93037dd0dae9c2fecfeb70026544647aefcbf292 Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 13:11:25 -0500 Subject: [PATCH 4/6] Add missing space --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 6201671..33b51d7 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: [ macos-latest, ubuntu-latest] + runs-on: [ macos-latest, ubuntu-latest ] steps: - name: Set Xcode version From bc02f640b3ed63ce13de825eb03326fdc3286c62 Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 16:35:21 -0500 Subject: [PATCH 5/6] Attempt to fix syntax --- .github/workflows/swift.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 33b51d7..88a218f 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -8,7 +8,9 @@ on: jobs: build: - runs-on: [ macos-latest, ubuntu-latest ] + runs-on: + - macos-latest + - ubuntu-latest steps: - name: Set Xcode version From 197a747547e6ed4045d4fb5df21434cd35064ee9 Mon Sep 17 00:00:00 2001 From: Stephen Booth Date: Wed, 28 May 2025 16:39:53 -0500 Subject: [PATCH 6/6] Update swift.yml --- .github/workflows/swift.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 88a218f..7469042 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -7,10 +7,9 @@ on: branches: [ main ] jobs: - build: - runs-on: - - macos-latest - - ubuntu-latest + build-macos: + name: Build and test on macOS + runs-on: macos-latest steps: - name: Set Xcode version @@ -23,3 +22,15 @@ jobs: run: swift build -v - name: Run tests run: swift test -v + + build-ubuntu: + name: Build and test on Ubuntu + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v