From 4cba6dc834e4f581be3e77bf50b22971e67a3b58 Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Fri, 4 Aug 2023 17:57:04 -0500
Subject: [PATCH 1/7] Create swift.yml
---
.github/workflows/swift.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 .github/workflows/swift.yml
diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml
new file mode 100644
index 0000000..cda61a2
--- /dev/null
+++ b/.github/workflows/swift.yml
@@ -0,0 +1,22 @@
+# This workflow will build a Swift project
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
+
+name: Swift
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+
+ runs-on: macos-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ run: swift build -v
+ - name: Run tests
+ run: swift test -v
From b186269f212621bbca82ba8a5dfade1f50e99c0d Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Fri, 4 Aug 2023 18:01:00 -0500
Subject: [PATCH 2/7] Update swift.yml
---
.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 cda61a2..0fe7c37 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -11,11 +11,11 @@ on:
jobs:
build:
-
runs-on: macos-latest
-
steps:
- uses: actions/checkout@v3
+ - name: BibleCore
+ run: cd BibleCore
- name: Build
run: swift build -v
- name: Run tests
From bba480f67639904bfcb97ce3724bb0f34e2f3d97 Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Fri, 4 Aug 2023 18:04:26 -0500
Subject: [PATCH 3/7] Update swift.yml
---
.github/workflows/swift.yml | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml
index 0fe7c37..a2a2f24 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -14,9 +14,7 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- - name: BibleCore
- run: cd BibleCore
- name: Build
- run: swift build -v
+ run: cd BibleCore/ && swift build -v
- name: Run tests
- run: swift test -v
+ run: cd BibleCore/ && swift test -v
From 6f2d482c82ccc6054d84c3c1df7d75b09fa4afc8 Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Sun, 6 Aug 2023 08:35:13 -0500
Subject: [PATCH 4/7] Update swift.yml
---
.github/workflows/swift.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml
index a2a2f24..ed31d3f 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -14,7 +14,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
+ - nmae: xcodebuild
+ run:
- name: Build
- run: cd BibleCore/ && swift build -v
+ run: swift build --package-path BibleCore --toolchain 5.8.0
- name: Run tests
- run: cd BibleCore/ && swift test -v
+ run: swift test --package-path BibleCore --toolchain 5.8.0
From d8acbfcad3501f0c75eaaeb9c7403be58b976ed8 Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Sun, 6 Aug 2023 08:35:23 -0500
Subject: [PATCH 5/7] Update swift.yml
---
.github/workflows/swift.yml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml
index ed31d3f..19a9e65 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -14,8 +14,6 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- - nmae: xcodebuild
- run:
- name: Build
run: swift build --package-path BibleCore --toolchain 5.8.0
- name: Run tests
From a3373319ee17c77210068d538ad1cb08dd2b1b6b Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Sun, 6 Aug 2023 08:39:09 -0500
Subject: [PATCH 6/7] Set Xcode version to 14.3
---
.github/workflows/swift.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml
index 19a9e65..32b1113 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -14,7 +14,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
+ - name: Select Xcode 14.3
+ run: sudo xcode-select -s /Applications/Xcode_14.3.app
- name: Build
- run: swift build --package-path BibleCore --toolchain 5.8.0
+ run: swift build --package-path BibleCore
- name: Run tests
- run: swift test --package-path BibleCore --toolchain 5.8.0
+ run: swift test --package-path BibleCore
From 43a120560a3f7efb88749309474ff2a8c5636544 Mon Sep 17 00:00:00 2001
From: Peter Larson
Date: Sun, 6 Aug 2023 09:27:55 -0500
Subject: [PATCH 7/7] Set run version to macOS-13
---
.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 32b1113..73ce257 100644
--- a/.github/workflows/swift.yml
+++ b/.github/workflows/swift.yml
@@ -11,7 +11,7 @@ on:
jobs:
build:
- runs-on: macos-latest
+ runs-on: macOS-13
steps:
- uses: actions/checkout@v3
- name: Select Xcode 14.3