Skip to content

Commit

Permalink
Lower supported iOS platform version (#6)
Browse files Browse the repository at this point in the history
+ add tvOS and watchOS
+ add a CI setup
  • Loading branch information
davdroman authored Nov 1, 2023
1 parent 1502ddb commit 9167151
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- "**"
schedule:
- cron: '3 3 * * 2' # 3:03 AM, every Tuesday

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
macOS:
name: ${{ matrix.platform }} (Swift ${{ matrix.swift }})
runs-on: macos-13
strategy:
fail-fast: false
matrix:
platform:
- iOS
- macOS
- tvOS
- watchOS
swift:
- 5.8
- 5.9
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Test Library
uses: mxcl/xcodebuild@v2
with:
platform: ${{ matrix.platform }}
action: test
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import PackageDescription

let package = Package(
name: "Republished",
platforms: [.iOS(.v15), .macOS(.v13)],
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.tvOS(.v13),
.watchOS(.v6),
],
products: [
.library(
name: "Republished",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -333,7 +333,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.1;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down

0 comments on commit 9167151

Please sign in to comment.