Skip to content

Commit

Permalink
Bulk updates
Browse files Browse the repository at this point in the history
- Updated project to support Xcode 15
- Dropped support for Swift versions earlier than 5
- Cleaned up scripts and other files
- Removed Codacy support
- Updated workflows to use latest macOS image and Xcode 15
  • Loading branch information
SomeRandomiOSDev committed Nov 13, 2023
1 parent 9f95ddc commit 5361d2f
Show file tree
Hide file tree
Showing 30 changed files with 199 additions and 6,302 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/carthage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,21 @@ on:

jobs:
build:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Build
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.carthage/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ jobs:
strategy:
matrix:
linttype: [Dynamic, Static]
os: [macOS-13]
xcode: ['15.0']

name: Lint
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.cocoapods/Logs/${{ matrix.linttype }}
LINT_TYPE: ${{ matrix.linttype }}

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ on:

jobs:
build:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Build Documentation
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.documentation/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/publish-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ on:

jobs:
publish:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Publish CocoaPods
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.cocoapods/Logs
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/swift-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ jobs:
build:
strategy:
matrix:
os: [macOS-11, ubuntu-latest]
os: [macOS-13, ubuntu-latest]
xcode: ['15.0']

name: Build
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.swiftpm/Logs/Build

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand All @@ -51,7 +56,8 @@ jobs:
test:
strategy:
matrix:
os: [macOS-11, ubuntu-latest]
os: [macOS-13, ubuntu-latest]
xcode: ['15.0']

name: Test
runs-on: ${{ matrix.os }}
Expand All @@ -60,6 +66,10 @@ jobs:
LOGSDIR: /tmp/.half.swiftpm/Logs/Test

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ on:

jobs:
build:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Run SwiftLint
runs-on: macOS-11
runs-on: ${{ matrix.os }}

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ on:

jobs:
xcframework:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Upload XCFramework Assets
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
TMPDIR: /tmp/.half.assets-xcframework.build

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down Expand Up @@ -63,12 +72,21 @@ jobs:


documentation:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Upload Documentation Assets
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
TMPDIR: /tmp/.half.assets-documentation.build

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/xcframework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@ on:

jobs:
build:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Build
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
TMPDIR: /tmp/.half.xcframework.build

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
55 changes: 50 additions & 5 deletions .github/workflows/xcodebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,21 @@ on:

jobs:
ios:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: iOS
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.xcodebuild/iOS/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down Expand Up @@ -60,12 +69,21 @@ jobs:
path: ${{ env.LOGSDIR }}/*.log

maccatalyst:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: Mac Catalyst
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.xcodebuild/macCatalyst/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand All @@ -89,12 +107,21 @@ jobs:
path: ${{ env.LOGSDIR }}/*.log

macos:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: macOS
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.xcodebuild/macOS/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand All @@ -118,12 +145,21 @@ jobs:
path: ${{ env.LOGSDIR }}/*.log

tvos:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: tvOS
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.xcodebuild/tvOS/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down Expand Up @@ -156,12 +192,21 @@ jobs:
path: ${{ env.LOGSDIR }}/*.log

watchos:
strategy:
matrix:
os: [macOS-13]
xcode: ['15.0']

name: watchOS
runs-on: macOS-11
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.half.xcodebuild/watchOS/Logs

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}

- name: Checkout Code
uses: actions/checkout@v2

Expand Down
20 changes: 5 additions & 15 deletions Half.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Half"
s.version = "1.3.2"
s.version = "1.4.0"
s.summary = "Swift Half-Precision Floating Point"
s.description = <<-DESC
A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.
Expand All @@ -12,23 +12,13 @@ Pod::Spec.new do |s|
s.author = { "Joe Newton" => "somerandomiosdev@gmail.com" }
s.source = { :git => "https://github.com/SomeRandomiOSDev/Half.git", :tag => s.version.to_s }

s.ios.deployment_target = '11.0'
s.macos.deployment_target = '10.10'
s.tvos.deployment_target = '11.0'
s.ios.deployment_target = '12.0'
s.macos.deployment_target = '10.13'
s.tvos.deployment_target = '12.0'
s.watchos.deployment_target = '4.0'

s.source_files = 'Sources/**/*.{swift,h,c}'
s.swift_versions = ['4.0', '4.2', '5.0']
s.swift_versions = ['5.0']
s.cocoapods_version = '>= 1.7.3'

s.test_spec 'Tests' do |ts|
ts.ios.deployment_target = '11.0'
ts.macos.deployment_target = '10.10'
ts.tvos.deployment_target = '11.0'
ts.watchos.deployment_target = '4.0'

ts.source_files = 'Tests/CHalfTests/*Tests.swift',
'Tests/HalfTests/*Tests.swift'
end

end
Loading

0 comments on commit 5361d2f

Please sign in to comment.