Skip to content

Commit f2ec1c9

Browse files
authored
build: update the minimum development target vesion to 12.0 (#110)
Signed-off-by: Alessandro Yuichi Okimoto <yuichijpn@gmail.com>
1 parent 9063eef commit f2ec1c9

11 files changed

Lines changed: 245 additions & 205 deletions

.github/workflows/build.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,24 @@ on:
99
branches:
1010
- main
1111

12+
env:
13+
XCODE_VERSION: '16.2'
14+
1215
jobs:
1316
generate-xcode-project:
1417
uses: ./.github/workflows/generate-xcode-project.yml
1518

1619
build:
1720
needs: generate-xcode-project
18-
runs-on: macos-15-xlarge
21+
runs-on: macos-14-xlarge
1922
steps:
20-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
24+
25+
- name: Select Xcode version
26+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
2127

2228
- name: Download xcode project file
23-
uses: actions/download-artifact@v4
29+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
2430
with:
2531
name: output-xcodeproj-file
2632
path: ./Bucketeer.xcodeproj
@@ -32,18 +38,21 @@ jobs:
3238

3339
build-example:
3440
needs: generate-xcode-project
35-
runs-on: macos-15-xlarge
41+
runs-on: macos-14-xlarge
3642
steps:
37-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
44+
45+
- name: Select Xcode version
46+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
3847

3948
- name: Download xcode project file
40-
uses: actions/download-artifact@v4
49+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
4150
with:
4251
name: output-xcodeproj-file
4352
path: ./Bucketeer.xcodeproj
4453

4554
- name: Download environment file
46-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
4756
with:
4857
name: output-environment-file
4958
path: ./environment.xcconfig
@@ -53,21 +62,23 @@ jobs:
5362
CI: true
5463
run: make build-example
5564

56-
test:
57-
name: Unit tests
65+
unit-test:
5866
needs: generate-xcode-project
59-
runs-on: macos-15-xlarge
67+
runs-on: macos-14-xlarge
6068
steps:
61-
- uses: actions/checkout@v4
69+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
70+
71+
- name: Select Xcode version
72+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
6273

6374
- name: Download xcode project file
64-
uses: actions/download-artifact@v4
75+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6576
with:
6677
name: output-xcodeproj-file
6778
path: ./Bucketeer.xcodeproj
6879

6980
- name: Download environment file
70-
uses: actions/download-artifact@v4
81+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
7182
with:
7283
name: output-environment-file
7384
path: ./environment.xcconfig
@@ -78,7 +89,7 @@ jobs:
7889
- name: Unit Test
7990
run: make test-without-building
8091

81-
e2e:
92+
e2e-test:
8293
name: E2E tests
8394
needs: generate-xcode-project
8495
uses: ./.github/workflows/e2e.yml

.github/workflows/e2e.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
workflow_dispatch:
44
workflow_call:
55

6+
env:
7+
XCODE_VERSION: '16.2'
8+
69
jobs:
710
generate-xcode-project:
811
if: ${{ github.event.workflow == '.github/workflows/e2e.yml'}}
@@ -14,20 +17,19 @@ jobs:
1417
if: always()
1518
name: E2E tests
1619
runs-on: macos-14-xlarge
17-
env:
18-
XCODE_VERSION: '16.2'
20+
1921
steps:
2022
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2123

24+
- name: Select Xcode version
25+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
26+
2227
- name: Download xcode project file
2328
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
2429
with:
2530
name: output-xcodeproj-file
2631
path: ./Bucketeer.xcodeproj
2732

28-
- name: Select Xcode version
29-
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
30-
3133
# Get macOS version for cache key
3234
- name: Get macOS version
3335
id: macos-version

.github/workflows/generate-xcode-project.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ on:
33
workflow_dispatch:
44
workflow_call:
55

6+
env:
7+
XCODE_VERSION: '16.2'
8+
69
jobs:
710
generate-xcode-project:
8-
runs-on: macos-14
11+
runs-on: macos-14-xlarge
912
steps:
1013
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1114

15+
- name: Select Xcode version
16+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
17+
1218
# Get macOS version for cache key
1319
- name: Get macOS version
1420
id: macos-version

.github/workflows/pr-title-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- synchronize
99

1010
jobs:
11-
validate_pr_title:
11+
validate-pr-title:
1212
name: Validate PR title
1313
runs-on: ubuntu-latest
1414
steps:

.github/workflows/publish-cocoapods.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88

99
jobs:
1010
release:
11-
runs-on: macos-13
11+
runs-on: macos-14-xlarge
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1414

1515
- name: Install Cocoapods
1616
run: gem install cocoapods

.github/workflows/pull-request.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,19 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1313
cancel-in-progress: true
1414

15+
env:
16+
XCODE_VERSION: '16.2'
17+
1518
jobs:
1619

1720
generate-xcode-project:
1821
uses: ./.github/workflows/generate-xcode-project.yml
1922

20-
lint_swift:
23+
lint-swift:
2124
needs: generate-xcode-project
22-
runs-on: macos-15-xlarge
25+
runs-on: macos-14-xlarge
2326
steps:
24-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2528

2629
# Pre-cache mint packages directory
2730
- name: Cache Mint packages
@@ -50,21 +53,24 @@ jobs:
5053
- name: Lint swift
5154
run: mint run swiftlint --strict
5255

53-
lint_pod:
54-
runs-on: macos-15-xlarge
56+
lint-pod:
57+
runs-on: macos-14-xlarge
5558
steps:
56-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5760
- name: Lint Pods
5861
run: pod lib lint --allow-warnings
5962

6063
build:
6164
needs: generate-xcode-project
62-
runs-on: macos-15-xlarge
65+
runs-on: macos-14-xlarge
6366
steps:
64-
- uses: actions/checkout@v4
67+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
68+
69+
- name: Select Xcode version
70+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
6571

6672
- name: Download xcode project file
67-
uses: actions/download-artifact@v4
73+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6874
with:
6975
name: output-xcodeproj-file
7076
path: ./Bucketeer.xcodeproj
@@ -76,18 +82,21 @@ jobs:
7682

7783
build-example:
7884
needs: generate-xcode-project
79-
runs-on: macos-15-xlarge
85+
runs-on: macos-14-xlarge
8086
steps:
81-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
88+
89+
- name: Select Xcode version
90+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
8291

8392
- name: Download environment file
84-
uses: actions/download-artifact@v4
93+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
8594
with:
8695
name: output-environment-file
8796
path: ./environment.xcconfig
8897

8998
- name: Download xcode project file
90-
uses: actions/download-artifact@v4
99+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
91100
with:
92101
name: output-xcodeproj-file
93102
path: ./Bucketeer.xcodeproj
@@ -97,14 +106,17 @@ jobs:
97106
CI: true
98107
run: make build-example
99108

100-
test:
109+
unit-test:
101110
needs: generate-xcode-project
102-
runs-on: macos-15-xlarge
111+
runs-on: macos-14-xlarge
103112
steps:
104-
- uses: actions/checkout@v4
113+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
114+
115+
- name: Select Xcode version
116+
run: sudo xcode-select -s '/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer'
105117

106118
- name: Download xcode project file
107-
uses: actions/download-artifact@v4
119+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
108120
with:
109121
name: output-xcodeproj-file
110122
path: ./Bucketeer.xcodeproj

.github/workflows/update-changelog-docs-page.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This workflow will update the CHANGELOG page in the `bucketeer-io/bucketeer-docs` repository when a tag is created
2-
name: update-changelog-docs-page
2+
name: Update Changelog Docs Page
33

44
on:
55
workflow_dispatch:
@@ -14,7 +14,7 @@ jobs:
1414
RELEASE_TAG: ${{ steps.release_tag.outputs.value }}
1515
COMMIT_URL: ${{ steps.commit_url.outputs.value }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1818
with:
1919
fetch-depth: 0
2020
- name: Store the tag value
@@ -24,11 +24,11 @@ jobs:
2424
id: commit_url
2525
run: echo "value=$(echo '${{ github.event.head_commit.url }}' | head -n 1)" >> $GITHUB_OUTPUT
2626

27-
update_changelog_doc_page:
27+
update-changelog-doc-page:
2828
needs: setup
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
3232
- name: Workflow Dispatch
3333
uses: benc-uk/workflow-dispatch@798e70c97009500150087d30d9f11c5444830385 # v1.2.2
3434
env:

.github/workflows/upload-framework.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88

99
jobs:
1010
upload-xcframework:
11-
runs-on: macos-15-xlarge
11+
runs-on: macos-14-xlarge
1212
env:
1313
MINT_PATH: ${{ github.workspace }}/mint/lib
1414
MINT_LINK_PATH: ${{ github.workspace }}/mint/bin
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1717

1818
- name: Install bootstrap mint
1919
uses: irgaly/setup-mint@99eaad2ad1197ea872390322a47620da2f21fde4 # v1.4.0

Mintfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
realm/SwiftLint@0.53.0
2-
yonaskolb/xcodegen@2.38.0
2+
yonaskolb/xcodegen@2.44.1
33
bloomberg/xcdiff@0.11.0

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Minimum build tool versions:
1313
| Tool | Version |
1414
| ----- | ------- |
1515
| Xcode | 13.1+ |
16-
| Swift | 5.0+ |
16+
| Swift | 5.3+ |
1717

1818
Minimum device platforms:
1919

2020
| Platform | Version |
2121
| -------- | ------- |
22-
| iOS | 11.0 |
23-
| tvOS | 11.0 |
22+
| iOS | 12.0 |
23+
| tvOS | 12.0 |
2424

2525
## Installation
2626

0 commit comments

Comments
 (0)