Skip to content

Commit 3c5ab71

Browse files
committed
Github Actions
1 parent 86b540e commit 3c5ab71

File tree

5 files changed

+178
-26
lines changed

5 files changed

+178
-26
lines changed

.github/workflows/test_only.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test Only
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: macOS-latest
8+
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
# - uses: actions/cache@v1
13+
# with:
14+
# path: vendor/bundle
15+
# key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
16+
# restore-keys: |
17+
# ${{ runner.os }}-gem-
18+
19+
# - uses: actions/cache@v1
20+
# with:
21+
# path: Pods
22+
# key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
23+
# restore-keys: |
24+
# ${{ runner.os }}-pods-
25+
26+
- name: Install gems
27+
run: |
28+
bundle config path vendor/bundle
29+
# bundle config set without 'default doc job cable storage ujs test db'
30+
bundle install --jobs 4 --retry 3
31+
32+
- name: Install Dependences
33+
run: |
34+
bundle exec pod update --verbose
35+
bundle exec pod install --verbose
36+
37+
# - name: Build
38+
# uses: sersoft-gmbh/xcodebuild-action@v1.4
39+
# with:
40+
# project: SelfControl.xcodeproj
41+
# scheme: SelfControl
42+
# destination: platform=macOS
43+
# action: build
44+
45+
# https://github.com/mxcl/xcodebuild
46+
- name: Build
47+
uses: mxcl/xcodebuild@v1
48+
with:
49+
xcode: ^12
50+
platform: macOS
51+
action: build
52+
code-coverage: false
53+
configuration: release

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem "cocoapods-binary-cache", :git => "https://github.com/grab/cocoapods-binary-cache.git", :tag => "0.1.11"
4+
gem 'cocoapods-prune-localizations'

Gemfile.lock

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
GIT
2+
remote: https://github.com/grab/cocoapods-binary-cache.git
3+
revision: 1d8b6c34ea8617c2e401264d824415bafdd84152
4+
tag: 0.1.11
5+
specs:
6+
cocoapods-binary-cache (0.1.11)
7+
cocoapods (>= 1.5.0)
8+
fourflusher (~> 2.0)
9+
rgl (~> 0.5.6)
10+
xcpretty (~> 0.3.0)
11+
12+
GEM
13+
remote: https://rubygems.org/
14+
specs:
15+
CFPropertyList (3.0.3)
16+
activesupport (5.2.6)
17+
concurrent-ruby (~> 1.0, >= 1.0.2)
18+
i18n (>= 0.7, < 2)
19+
minitest (~> 5.1)
20+
tzinfo (~> 1.1)
21+
addressable (2.8.0)
22+
public_suffix (>= 2.0.2, < 5.0)
23+
algoliasearch (1.27.5)
24+
httpclient (~> 2.8, >= 2.8.3)
25+
json (>= 1.5.1)
26+
atomos (0.1.3)
27+
claide (1.0.3)
28+
cocoapods (1.10.1)
29+
addressable (~> 2.6)
30+
claide (>= 1.0.2, < 2.0)
31+
cocoapods-core (= 1.10.1)
32+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
33+
cocoapods-downloader (>= 1.4.0, < 2.0)
34+
cocoapods-plugins (>= 1.0.0, < 2.0)
35+
cocoapods-search (>= 1.0.0, < 2.0)
36+
cocoapods-trunk (>= 1.4.0, < 2.0)
37+
cocoapods-try (>= 1.1.0, < 2.0)
38+
colored2 (~> 3.1)
39+
escape (~> 0.0.4)
40+
fourflusher (>= 2.3.0, < 3.0)
41+
gh_inspector (~> 1.0)
42+
molinillo (~> 0.6.6)
43+
nap (~> 1.0)
44+
ruby-macho (~> 1.4)
45+
xcodeproj (>= 1.19.0, < 2.0)
46+
cocoapods-core (1.10.1)
47+
activesupport (> 5.0, < 6)
48+
addressable (~> 2.6)
49+
algoliasearch (~> 1.0)
50+
concurrent-ruby (~> 1.1)
51+
fuzzy_match (~> 2.0.4)
52+
nap (~> 1.0)
53+
netrc (~> 0.11)
54+
public_suffix
55+
typhoeus (~> 1.0)
56+
cocoapods-deintegrate (1.0.4)
57+
cocoapods-downloader (1.4.0)
58+
cocoapods-plugins (1.0.0)
59+
nap
60+
cocoapods-prune-localizations (0.3.1)
61+
cocoapods-search (1.0.0)
62+
cocoapods-trunk (1.5.0)
63+
nap (>= 0.8, < 2.0)
64+
netrc (~> 0.11)
65+
cocoapods-try (1.2.0)
66+
colored2 (3.1.2)
67+
concurrent-ruby (1.1.9)
68+
escape (0.0.4)
69+
ethon (0.14.0)
70+
ffi (>= 1.15.0)
71+
ffi (1.15.3)
72+
fourflusher (2.3.1)
73+
fuzzy_match (2.0.4)
74+
generator (0.0.1)
75+
gh_inspector (1.1.3)
76+
httpclient (2.8.3)
77+
i18n (1.8.10)
78+
concurrent-ruby (~> 1.0)
79+
json (2.5.1)
80+
lazy_priority_queue (0.1.1)
81+
minitest (5.14.4)
82+
molinillo (0.6.6)
83+
nanaimo (0.3.0)
84+
nap (1.1.0)
85+
netrc (0.11.0)
86+
public_suffix (4.0.6)
87+
rexml (3.2.5)
88+
rgl (0.5.7)
89+
lazy_priority_queue (~> 0.1.0)
90+
stream (~> 0.5.3)
91+
rouge (2.0.7)
92+
ruby-macho (1.4.0)
93+
stream (0.5.3)
94+
generator
95+
thread_safe (0.3.6)
96+
typhoeus (1.4.0)
97+
ethon (>= 0.9.0)
98+
tzinfo (1.2.9)
99+
thread_safe (~> 0.1)
100+
xcodeproj (1.20.0)
101+
CFPropertyList (>= 2.3.3, < 4.0)
102+
atomos (~> 0.1.3)
103+
claide (>= 1.0.2, < 2.0)
104+
colored2 (~> 3.1)
105+
nanaimo (~> 0.3.0)
106+
rexml (~> 3.2.4)
107+
xcpretty (0.3.0)
108+
rouge (~> 2.0.7)
109+
110+
PLATFORMS
111+
x86_64-darwin-20
112+
113+
DEPENDENCIES
114+
cocoapods-binary-cache!
115+
cocoapods-prune-localizations
116+
117+
BUNDLED WITH
118+
2.2.22

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source 'https://github.com/CocoaPods/Specs.git'
1+
source 'https://cdn.cocoapods.org/'
22

33
minVersion = '10.10'
44

@@ -15,7 +15,7 @@ target "SelfControl" do
1515
pod 'FormatterKit/TimeIntervalFormatter', '~> 1.8.0'
1616
pod 'LetsMove', '~> 1.24'
1717
pod 'Sentry', :git => 'https://github.com/getsentry/sentry-cocoa.git', :tag => '7.0.3'
18-
18+
1919
# Add test target
2020
target 'SelfControlTests' do
2121
inherit! :complete

SelfControl.xcodeproj/project.pbxproj

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,6 @@
30283028
LastUpgradeCheck = 0930;
30293029
TargetAttributes = {
30303030
8D1107260486CEB800E47090 = {
3031-
DevelopmentTeam = L6W5L88KN7;
30323031
LastSwiftMigration = 1150;
30333032
ProvisioningStyle = Manual;
30343033
SystemCapabilities = {
@@ -3039,25 +3038,20 @@
30393038
};
30403039
CB0EEF5C20FD8CE00024D27B = {
30413040
CreatedOnToolsVersion = 9.4.1;
3042-
DevelopmentTeam = L6W5L88KN7;
30433041
ProvisioningStyle = Automatic;
30443042
};
30453043
CB74D1052480E506002B2079 = {
3046-
DevelopmentTeam = L6W5L88KN7;
30473044
ProvisioningStyle = Manual;
30483045
};
30493046
CB9C80F619CFB79700CDCAE1 = {
30503047
CreatedOnToolsVersion = 6.0.1;
3051-
DevelopmentTeam = L6W5L88KN7;
30523048
ProvisioningStyle = Automatic;
30533049
};
30543050
CB9C811A19CFBA8500CDCAE1 = {
30553051
CreatedOnToolsVersion = 6.0.1;
3056-
DevelopmentTeam = L6W5L88KN7;
30573052
ProvisioningStyle = Manual;
30583053
};
30593054
CBA2AFD10F39EC12005AFEBE = {
3060-
DevelopmentTeam = L6W5L88KN7;
30613055
ProvisioningStyle = Manual;
30623056
};
30633057
};
@@ -4056,12 +4050,10 @@
40564050
buildSettings = {
40574051
CLANG_ENABLE_MODULES = YES;
40584052
CLANG_ENABLE_OBJC_ARC = YES;
4059-
CODE_SIGN_IDENTITY = "Developer ID Application";
40604053
COMBINE_HIDPI_IMAGES = YES;
40614054
COPY_PHASE_STRIP = NO;
40624055
CURRENT_PROJECT_VERSION = 406;
40634056
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4064-
DEVELOPMENT_TEAM = L6W5L88KN7;
40654057
FRAMEWORK_SEARCH_PATHS = (
40664058
"$(inherited)",
40674059
"$(SRCROOT)",
@@ -4093,7 +4085,6 @@
40934085
COMBINE_HIDPI_IMAGES = YES;
40944086
CURRENT_PROJECT_VERSION = 406;
40954087
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4096-
DEVELOPMENT_TEAM = L6W5L88KN7;
40974088
FRAMEWORK_SEARCH_PATHS = (
40984089
"$(inherited)",
40994090
"$(SRCROOT)",
@@ -4140,7 +4131,6 @@
41404131
CODE_SIGN_IDENTITY = "Mac Developer";
41414132
COPY_PHASE_STRIP = NO;
41424133
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4143-
DEVELOPMENT_TEAM = L6W5L88KN7;
41444134
ENABLE_HARDENED_RUNTIME = YES;
41454135
ENABLE_STRICT_OBJC_MSGSEND = YES;
41464136
ENABLE_TESTABILITY = YES;
@@ -4190,7 +4180,6 @@
41904180
CODE_SIGN_IDENTITY = "Mac Developer";
41914181
COPY_PHASE_STRIP = NO;
41924182
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4193-
DEVELOPMENT_TEAM = L6W5L88KN7;
41944183
ENABLE_HARDENED_RUNTIME = YES;
41954184
ENABLE_STRICT_OBJC_MSGSEND = YES;
41964185
GCC_NO_COMMON_BLOCKS = YES;
@@ -4283,12 +4272,10 @@
42834272
buildSettings = {
42844273
CLANG_ENABLE_MODULES = YES;
42854274
CLANG_ENABLE_OBJC_ARC = YES;
4286-
CODE_SIGN_IDENTITY = "Developer ID Application";
42874275
CODE_SIGN_STYLE = Manual;
42884276
COPY_PHASE_STRIP = NO;
42894277
CURRENT_PROJECT_VERSION = 406;
42904278
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4291-
DEVELOPMENT_TEAM = L6W5L88KN7;
42924279
GCC_DYNAMIC_NO_PIC = NO;
42934280
GCC_MODEL_TUNING = G5;
42944281
GCC_NO_COMMON_BLOCKS = NO;
@@ -4326,12 +4313,10 @@
43264313
buildSettings = {
43274314
CLANG_ENABLE_MODULES = YES;
43284315
CLANG_ENABLE_OBJC_ARC = YES;
4329-
CODE_SIGN_IDENTITY = "Developer ID Application";
4330-
CODE_SIGN_STYLE = Manual;
4316+
CODE_SIGN_STYLE = Automatic;
43314317
COPY_PHASE_STRIP = NO;
43324318
CURRENT_PROJECT_VERSION = 406;
43334319
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4334-
DEVELOPMENT_TEAM = L6W5L88KN7;
43354320
GCC_MODEL_TUNING = G5;
43364321
GCC_NO_COMMON_BLOCKS = NO;
43374322
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -4382,7 +4367,6 @@
43824367
CODE_SIGN_STYLE = Automatic;
43834368
COMBINE_HIDPI_IMAGES = YES;
43844369
CURRENT_PROJECT_VERSION = 406;
4385-
DEVELOPMENT_TEAM = "";
43864370
ENABLE_STRICT_OBJC_MSGSEND = YES;
43874371
GCC_C_LANGUAGE_STANDARD = gnu99;
43884372
GCC_DYNAMIC_NO_PIC = NO;
@@ -4428,7 +4412,6 @@
44284412
COMBINE_HIDPI_IMAGES = YES;
44294413
COPY_PHASE_STRIP = YES;
44304414
CURRENT_PROJECT_VERSION = 406;
4431-
DEVELOPMENT_TEAM = L6W5L88KN7;
44324415
ENABLE_NS_ASSERTIONS = NO;
44334416
ENABLE_STRICT_OBJC_MSGSEND = YES;
44344417
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -4464,8 +4447,6 @@
44644447
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
44654448
CLANG_WARN_UNREACHABLE_CODE = YES;
44664449
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
4467-
CODE_SIGN_IDENTITY = "Developer ID Application";
4468-
DEVELOPMENT_TEAM = L6W5L88KN7;
44694450
ENABLE_STRICT_OBJC_MSGSEND = YES;
44704451
GCC_C_LANGUAGE_STANDARD = gnu99;
44714452
GCC_DYNAMIC_NO_PIC = NO;
@@ -4509,7 +4490,6 @@
45094490
CLANG_WARN_UNREACHABLE_CODE = YES;
45104491
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
45114492
COPY_PHASE_STRIP = YES;
4512-
DEVELOPMENT_TEAM = L6W5L88KN7;
45134493
ENABLE_NS_ASSERTIONS = NO;
45144494
ENABLE_STRICT_OBJC_MSGSEND = YES;
45154495
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -4534,12 +4514,10 @@
45344514
buildSettings = {
45354515
CLANG_ENABLE_MODULES = YES;
45364516
CLANG_ENABLE_OBJC_ARC = YES;
4537-
CODE_SIGN_IDENTITY = "Developer ID Application";
45384517
COPY_PHASE_STRIP = NO;
45394518
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
45404519
CURRENT_PROJECT_VERSION = 406;
45414520
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4542-
DEVELOPMENT_TEAM = L6W5L88KN7;
45434521
FRAMEWORK_SEARCH_PATHS = (
45444522
"$(PLATFORM_DIR)/Developer/Library/Frameworks\n\n$(PLATFORM_DIR)/Developer/Library/Frameworks\n\n",
45454523
);
@@ -4574,7 +4552,6 @@
45744552
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
45754553
CURRENT_PROJECT_VERSION = 406;
45764554
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
4577-
DEVELOPMENT_TEAM = L6W5L88KN7;
45784555
FRAMEWORK_SEARCH_PATHS = (
45794556
"$(PLATFORM_DIR)/Developer/Library/Frameworks\n\n$(PLATFORM_DIR)/Developer/Library/Frameworks\n\n",
45804557
);

0 commit comments

Comments
 (0)