Skip to content

Commit 8057070

Browse files
committed
Replace Travis w/ GHA
...
1 parent a91d41c commit 8057070

File tree

5 files changed

+84
-115
lines changed

5 files changed

+84
-115
lines changed

.github/workflows/swift.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 9 * * 5"
8+
9+
jobs:
10+
linux:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
image:
16+
- swift:5.5.3-xenial
17+
- swift:5.6.1-bionic
18+
- swift:5.7.2-focal
19+
- swift:5.8-jammy
20+
container: ${{ matrix.image }}
21+
steps:
22+
- name: Checkout Repository
23+
uses: actions/checkout@v3
24+
- name: Build Swift Debug Package
25+
run: swift build -c debug
26+
- name: Build Swift Release Package
27+
run: swift build -c release
28+
nextstep:
29+
runs-on: macos-latest
30+
steps:
31+
- name: Select latest available Xcode
32+
uses: maxim-lobanov/[email protected]
33+
with:
34+
xcode-version: 13.2.1
35+
- name: Checkout Repository
36+
uses: actions/checkout@v3
37+
- name: Build Swift Debug Package
38+
run: swift build -c debug
39+
- name: Build Swift Release Package
40+
run: swift build -c release

.gitignore

+44-21
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
#
33
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
44

5-
## Build generated
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)
613
build/
714
DerivedData/
8-
9-
## Various settings
15+
*.moved-aside
1016
*.pbxuser
1117
!default.pbxuser
1218
*.mode1v3
@@ -15,14 +21,11 @@ DerivedData/
1521
!default.mode2v3
1622
*.perspectivev3
1723
!default.perspectivev3
18-
xcuserdata/
19-
20-
## Other
21-
*.moved-aside
22-
*.xcuserstate
2324

2425
## Obj-C/Swift specific
2526
*.hmap
27+
28+
## App packaging
2629
*.ipa
2730
*.dSYM.zip
2831
*.dSYM
@@ -35,6 +38,14 @@ playground.xcworkspace
3538
#
3639
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
3740
# 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+
3849
.build/
3950

4051
# CocoaPods
@@ -44,34 +55,46 @@ playground.xcworkspace
4455
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
4556
#
4657
# Pods/
58+
#
59+
# Add this line if you want to avoid checking in source code from the Xcode workspace
60+
# *.xcworkspace
4761

4862
# Carthage
4963
#
5064
# Add this line if you want to avoid checking in source code from Carthage dependencies.
5165
# Carthage/Checkouts
5266

53-
Carthage/Build
67+
Carthage/Build/
68+
69+
# Accio dependency management
70+
Dependencies/
71+
.accio/
5472

5573
# fastlane
5674
#
57-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
58-
# screenshots whenever they are needed.
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.
5977
# For more information about the recommended setup visit:
60-
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
78+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
6179

6280
fastlane/report.xml
6381
fastlane/Preview.html
64-
fastlane/screenshots
82+
fastlane/screenshots/**/*.png
6583
fastlane/test_output
6684

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+
6792
# hh
68-
*.xcscmblueprint
69-
Package.pins
70-
Packages
71-
config.make
72-
*.tgz
7393
Package.resolved
74-
Upstream
75-
*.xcodeproj
76-
*.build
94+
xcuserdata
95+
.docker.build
96+
.swiftpm
97+
.vscode
98+
.DS_Store
99+
*.swp
77100

.travis.d/before-install.sh

-22
This file was deleted.

.travis.d/install.sh

-32
This file was deleted.

.travis.yml

-40
This file was deleted.

0 commit comments

Comments
 (0)