Skip to content

Commit dd9e5f5

Browse files
committed
Replace Travis with Github Action
1 parent 0b20b77 commit dd9e5f5

4 files changed

Lines changed: 112 additions & 7 deletions

File tree

.github/scripts/build_app.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -eo pipefail
4+
5+
xcodebuild -project SCLAlertView.xcodeproj \
6+
-scheme SCLAlertView \
7+
-destination platform=iOS\ Simulator,OS=14.0,name=iPhone\ 11 \
8+
clean build | xcpretty

.github/workflows/Build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Building
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Building SCLAlertView
7+
runs-on: macOS-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v2
11+
- name: Setup Xcode version
12+
uses: maxim-lobanov/[email protected]
13+
with:
14+
xcode-version: 12.0.0
15+
- name: Building iOS app
16+
run: exec ./.github/scripts/build_app.sh

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1200"
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 = "DDB15F9C19D5B7C600173158"
18+
BuildableName = "SCLAlertView.app"
19+
BlueprintName = "SCLAlertView"
20+
ReferencedContainer = "container:SCLAlertView.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "DDB15FB519D5B7C600173158"
36+
BuildableName = "SCLAlertViewTests.xctest"
37+
BlueprintName = "SCLAlertViewTests"
38+
ReferencedContainer = "container:SCLAlertView.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
</TestAction>
43+
<LaunchAction
44+
buildConfiguration = "Debug"
45+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47+
launchStyle = "0"
48+
useCustomWorkingDirectory = "NO"
49+
ignoresPersistentStateOnLaunch = "NO"
50+
debugDocumentVersioning = "YES"
51+
debugServiceExtension = "internal"
52+
allowLocationSimulation = "YES">
53+
<BuildableProductRunnable
54+
runnableDebuggingMode = "0">
55+
<BuildableReference
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "DDB15F9C19D5B7C600173158"
58+
BuildableName = "SCLAlertView.app"
59+
BlueprintName = "SCLAlertView"
60+
ReferencedContainer = "container:SCLAlertView.xcodeproj">
61+
</BuildableReference>
62+
</BuildableProductRunnable>
63+
</LaunchAction>
64+
<ProfileAction
65+
buildConfiguration = "Release"
66+
shouldUseLaunchSchemeArgsEnv = "YES"
67+
savedToolIdentifier = ""
68+
useCustomWorkingDirectory = "NO"
69+
debugDocumentVersioning = "YES">
70+
<BuildableProductRunnable
71+
runnableDebuggingMode = "0">
72+
<BuildableReference
73+
BuildableIdentifier = "primary"
74+
BlueprintIdentifier = "DDB15F9C19D5B7C600173158"
75+
BuildableName = "SCLAlertView.app"
76+
BlueprintName = "SCLAlertView"
77+
ReferencedContainer = "container:SCLAlertView.xcodeproj">
78+
</BuildableReference>
79+
</BuildableProductRunnable>
80+
</ProfileAction>
81+
<AnalyzeAction
82+
buildConfiguration = "Debug">
83+
</AnalyzeAction>
84+
<ArchiveAction
85+
buildConfiguration = "Release"
86+
revealArchiveInOrganizer = "YES">
87+
</ArchiveAction>
88+
</Scheme>

0 commit comments

Comments
 (0)