Skip to content

Commit 605a9a3

Browse files
committed
Initial GitHub CI commit
1 parent 6c01ae5 commit 605a9a3

File tree

5 files changed

+179
-19
lines changed

5 files changed

+179
-19
lines changed

.github/workflows/build.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
paths-ignore:
7+
- 'Docs/**' # Docs folder in root of repo
8+
- '**/*.md' # .md files anywhere in the repo
9+
- '**/LICENSE' # LICENSE files anywhere in the repo
10+
- '**/.gitignore' # .gitignore files anywhere in the repo
11+
12+
pull_request:
13+
branches: [main]
14+
paths-ignore:
15+
- 'Docs/**' # Docs folder in root of repo
16+
- '**/*.md' # .md files anywhere in the repo
17+
- '**/LICENSE' # LICENSE files anywhere in the repo
18+
- '**/.gitignore' # .gitignore files anywhere in the repo
19+
20+
workflow_dispatch:
21+
22+
schedule:
23+
- cron: '50 11 * * *' # once a day @ 11:50am UTC (4:50am PST)
24+
25+
jobs:
26+
macOS:
27+
name: macOS
28+
runs-on: macos-latest
29+
steps:
30+
- uses: actions/checkout@main
31+
- name: Build
32+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=macOS,arch=x86_64"
33+
- name: Unit Tests
34+
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=macOS,arch=x86_64"
35+
36+
macCatalyst:
37+
name: macCatalyst
38+
runs-on: macos-latest
39+
steps:
40+
- uses: actions/checkout@main
41+
- name: Build
42+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=macOS,variant=Mac Catalyst,arch=x86_64"
43+
- name: Unit Tests
44+
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=macOS,variant=Mac Catalyst,arch=x86_64"
45+
46+
iOS:
47+
name: iOS
48+
runs-on: macos-latest # this must be macos, GitHub does not offer iOS directly but we can use xcodebuild
49+
steps:
50+
- uses: actions/checkout@main
51+
- name: iPhone 12 Simulator - Build
52+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=iOS Simulator,name=iPhone 12"
53+
- name: iPhone 12 Simulator - Unit Tests
54+
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=iOS Simulator,name=iPhone 12"
55+
56+
tvOS:
57+
name: tvOS
58+
runs-on: macos-latest # this must be macos, GitHub does not offer tvOS directly but we can use xcodebuild
59+
steps:
60+
- uses: actions/checkout@main
61+
- name: Apple TV - Build
62+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=tvOS Simulator,name=Apple TV"
63+
- name: Apple TV - Unit Tests
64+
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "SwiftASCII-CI" -destination "platform=tvOS Simulator,name=Apple TV"
65+
66+
67+
# xcodebuild test reference:
68+
# https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/08-automation.html

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1240"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "SwiftASCII"
18+
BuildableName = "SwiftASCII"
19+
BlueprintName = "SwiftASCII"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "SwiftASCIITests"
32+
BuildableName = "SwiftASCIITests"
33+
BlueprintName = "SwiftASCIITests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES"
44+
codeCoverageEnabled = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "SwiftASCIITests"
51+
BuildableName = "SwiftASCIITests"
52+
BlueprintName = "SwiftASCIITests"
53+
ReferencedContainer = "container:">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
</TestAction>
58+
<LaunchAction
59+
buildConfiguration = "Debug"
60+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
61+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
62+
launchStyle = "0"
63+
useCustomWorkingDirectory = "NO"
64+
ignoresPersistentStateOnLaunch = "NO"
65+
debugDocumentVersioning = "YES"
66+
debugServiceExtension = "internal"
67+
allowLocationSimulation = "YES">
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES">
75+
<MacroExpansion>
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "SwiftASCII"
79+
BuildableName = "SwiftASCII"
80+
BlueprintName = "SwiftASCII"
81+
ReferencedContainer = "container:">
82+
</BuildableReference>
83+
</MacroExpansion>
84+
</ProfileAction>
85+
<AnalyzeAction
86+
buildConfiguration = "Debug">
87+
</AnalyzeAction>
88+
<ArchiveAction
89+
buildConfiguration = "Release"
90+
revealArchiveInOrganizer = "YES">
91+
</ArchiveAction>
92+
</Scheme>

README.md

+4-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
# SwiftASCII
22

3-
<p>
4-
<a href="https://developer.apple.com/swift">
5-
<img src="https://img.shields.io/badge/Swift%205.3-compatible-orange.svg?style=flat"
6-
alt="Swift 5.3 compatible" /></a>
7-
<a href="#installation">
8-
<img src="https://img.shields.io/badge/SPM-compatible-orange.svg?style=flat"
9-
alt="Swift Package Manager (SPM) compatible" /></a>
10-
<a href="https://developer.apple.com/swift">
11-
<img src="https://img.shields.io/badge/platform-macOS%2010.12%20|%20iOS%209%20|%20tvOS%20|%20watchOS%20-green.svg?style=flat"
12-
alt="Platform - macOS 10.11 | iOS 9 | tvOS | watchOS" /></a>
13-
<a href="#contributions">
14-
<img src="https://img.shields.io/badge/Linux-not%20tested-black.svg?style=flat"
15-
alt="Linux - not tested" /></a>
16-
<a href="https://github.com/orchetect/SwiftASCII/blob/main/LICENSE">
17-
<img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat"
18-
alt="License: MIT" /></a>
3+
[![CI Build Status](https://github.com/orchetect/SwiftASCII/actions/workflows/build.yml/badge.svg)](https://github.com/orchetect/SwiftASCII/actions/workflows/build.yml) [![Platforms - macOS | iOS | tvOS | watchOS](https://img.shields.io/badge/platforms-macOS%20|%20iOS%20|%20tvOS%20|%20watchOS%20-lightgrey.svg?style=flat)](https://developer.apple.com/swift) [![License: MIT](http://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/orchetect/SwiftASCII/blob/main/LICENSE)
194

205
Type-safe `ASCIIString` and `ASCIICharacter` types for Swift.
216

@@ -25,10 +10,10 @@ Complete unit test coverage.
2510

2611
### Swift Package Manager (SPM)
2712

28-
To add ASCIIString to your Xcode project:
13+
To add SwiftASCII to your Xcode project:
2914

3015
1. Select File → Swift Packages → Add Package Dependency
31-
2. Add package using `https://github.com/orchetect/ASCIIString` as the URL.
16+
2. Add package using `https://github.com/orchetect/SwiftASCII` as the URL.
3217

3318
## Getting Started
3419

@@ -105,4 +90,4 @@ Licensed under the MIT license. See [LICENSE](https://github.com/orchetect/Swift
10590

10691
## Contributions
10792

108-
Contributions are welcome. Feel free to post an Issue to discuss.
93+
Contributions are welcome. Feel free to post an Issue to discuss.

0 commit comments

Comments
 (0)