Skip to content

Commit 466966d

Browse files
committed
Initial commit
0 parents  commit 466966d

File tree

18 files changed

+1336
-0
lines changed

18 files changed

+1336
-0
lines changed

.github/workflows/swift.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
cancel_previous:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: styfle/[email protected]
14+
with:
15+
workflow_id: ${{ github.event.workflow.id }}
16+
17+
# build_and_test_spm_mac:
18+
# needs: cancel_previous
19+
# runs-on: macos-11
20+
# steps:
21+
# - uses: maxim-lobanov/setup-xcode@v1
22+
# with:
23+
# xcode-version: '13.0'
24+
# - uses: actions/checkout@v2
25+
# - uses: webfactory/[email protected]
26+
# with:
27+
# ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
28+
# - name: Build
29+
# run: swift build
30+
# - name: Run tests
31+
# run: swift test
32+
33+
build_and_test_ios:
34+
needs: cancel_previous
35+
runs-on: macos-11
36+
steps:
37+
- uses: maxim-lobanov/setup-xcode@v1
38+
with:
39+
xcode-version: '13.0'
40+
- uses: actions/checkout@v2
41+
- uses: actions/cache@v2
42+
with:
43+
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
44+
key: ${{ runner.os }}-spm-ios-${{ hashFiles('**/Package.resolved') }}
45+
restore-keys: |
46+
${{ runner.os }}-spm-ios
47+
- uses: webfactory/[email protected]
48+
with:
49+
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
50+
- run: xcodebuild -scheme Segment-Package test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11'
51+
52+
build_and_test_examples:
53+
needs: cancel_previous
54+
runs-on: macos-11
55+
steps:
56+
- uses: maxim-lobanov/setup-xcode@v1
57+
with:
58+
xcode-version: '13.0'
59+
- uses: actions/checkout@v2
60+
- uses: actions/cache@v2
61+
with:
62+
path: /Users/runner/Library/Developer/Xcode/DerivedData
63+
key: ${{ runner.os }}-spm-examples-${{ hashFiles('**/Package.resolved') }}
64+
restore-keys: |
65+
${{ runner.os }}-spm-examples
66+
- uses: webfactory/[email protected]
67+
with:
68+
ssh-private-key: ${{ secrets.SOVRAN_SSH_KEY }}
69+
- name: build for ios simulator
70+
run: |
71+
cd Example/BasicExample
72+
xcodebuild -workspace "BasicExample.xcworkspace" -scheme "BasicExample" -sdk iphonesimulator
73+

.gitignore

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## User settings
6+
xcuserdata/
7+
8+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9+
*.xcscmblueprint
10+
*.xccheckout
11+
12+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13+
build/
14+
DerivedData/
15+
*.moved-aside
16+
*.pbxuser
17+
!default.pbxuser
18+
*.mode1v3
19+
!default.mode1v3
20+
*.mode2v3
21+
!default.mode2v3
22+
*.perspectivev3
23+
!default.perspectivev3
24+
25+
## Obj-C/Swift specific
26+
*.hmap
27+
28+
## App packaging
29+
*.ipa
30+
*.dSYM.zip
31+
*.dSYM
32+
33+
## Playgrounds
34+
timeline.xctimeline
35+
playground.xcworkspace
36+
37+
# Swift Package Manager
38+
#
39+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
40+
# Packages/
41+
# Package.pins
42+
# Package.resolved
43+
# *.xcodeproj
44+
#
45+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
46+
# hence it is not needed unless you have added a package configuration file to your project
47+
# .swiftpm
48+
49+
.build/
50+
51+
# CocoaPods
52+
#
53+
# We recommend against adding the Pods directory to your .gitignore. However
54+
# you should judge for yourself, the pros and cons are mentioned at:
55+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
56+
#
57+
# Pods/
58+
#
59+
# Add this line if you want to avoid checking in source code from the Xcode workspace
60+
# *.xcworkspace
61+
62+
# Carthage
63+
#
64+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
65+
# Carthage/Checkouts
66+
67+
Carthage/Build/
68+
69+
# Accio dependency management
70+
Dependencies/
71+
.accio/
72+
73+
# fastlane
74+
#
75+
# It is recommended to not store the screenshots in the git repo.
76+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
77+
# For more information about the recommended setup visit:
78+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
79+
80+
fastlane/report.xml
81+
fastlane/Preview.html
82+
fastlane/screenshots/**/*.png
83+
fastlane/test_output
84+
85+
# Code Injection
86+
#
87+
# After new code Injection tools there's a generated folder /iOSInjectionProject
88+
# https://github.com/johnno1962/injectionforxcode
89+
90+
iOSInjectionProject/
91+
/Example/BasicExample/BasicExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm

0 commit comments

Comments
 (0)