Skip to content

Commit 0554e76

Browse files
authored
Merge pull request #1 from MillerTechnologyPeru/feature/swift-5_7
Updated for Swift 5.7.1
2 parents 0dad8e6 + ae2fc2a commit 0554e76

File tree

395 files changed

+30994
-4973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

395 files changed

+30994
-4973
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These are supported funding model platforms
2+
ko_fi: colemancda

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**Issue**
2+
3+
Fixes #1.
4+
5+
**What does this PR Do?**
6+
7+
Description of the changes in this pull request.
8+
9+
**Where should the reviewer start?**
10+
11+
`main.swift`
12+
13+
**Sweet giphy showing how you feel about this PR**
14+
15+
![Giphy](https://media.giphy.com/media/rkDXJA9GoWR2/giphy.gif)

.github/workflows/buildroot.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Buildroot
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
buildroot-armv7-build:
8+
name: Build Armv7
9+
runs-on: ubuntu-20.04
10+
container: colemancda/swift-buildroot:amd64-prebuilt-armv7
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Swift Version
15+
run: swift --version
16+
- name: Build
17+
run: |
18+
cd /usr/src/buildroot-external
19+
export SWIFT_ARCH=armv7
20+
export SWIFT_PACKAGE_PATH=$GITHUB_WORKSPACE
21+
export SWIFTPM_DISABLE_PLUGINS=1
22+
swift --version
23+
./build-swift-package.sh
24+
- name: Archive Build artifacts
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: swiftpm-build-armv7
28+
path: .build/*/*.xctest

.github/workflows/swift-arm.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Swift ARM
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
linux-swift-armv7-debian-build:
8+
name: Build for Debian Armv7
9+
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
swift: [5.6.1, 5.7]
13+
container: colemancda/swift-armv7:${{ matrix.swift }}-prebuilt
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Swift Version
18+
run: swift --version
19+
- name: Build
20+
run: |
21+
cd /usr/src/swift-armv7
22+
export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE
23+
export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build
24+
mkdir -p $SWIFT_PACKAGE_BUILDDIR
25+
mkdir -p /usr/src/swift-armv7/build/
26+
./generate-swiftpm-toolchain.sh
27+
./build-swift-package.sh
28+
- name: Archive unit tests
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: swift-${{ matrix.swift }}-debian-armv7-xctest
32+
path: .build/*/*.xctest
33+
- name: Archive Lock daemon
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: swift-${{ matrix.swift }}-debian-armv7-lockd
37+
path: .build/*/lockd
38+
39+
linux-swift-arm64-build:
40+
name: Build for Linux Arm64
41+
runs-on: [Linux, ARM64]
42+
strategy:
43+
matrix:
44+
swift: [5.6.3-focal, 5.7-jammy]
45+
container: swift:${{ matrix.swift }}
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v2
49+
- name: Swift Version
50+
run: swift --version
51+
- name: Build (Debug)
52+
run: swift build -c debug
53+
- name: Build (Release)
54+
run: swift build -c release
55+
56+
linux-swift-arm64-test:
57+
name: Build for Linux Arm64
58+
runs-on: [Linux, ARM64]
59+
strategy:
60+
matrix:
61+
swift: [5.6.3-focal, 5.7-jammy]
62+
container: swift:${{ matrix.swift }}
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v2
66+
- name: Swift Version
67+
run: swift --version
68+
- name: Test (Debug)
69+
run: swift test --configuration debug
70+
- name: Test (Release)
71+
run: swift test --configuration release -Xswiftc -enable-testing

.github/workflows/swift.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Swift
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Build
8+
strategy:
9+
matrix:
10+
swift: [5.6.3, 5.7]
11+
os: [ubuntu-20.04, macos-latest]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- name: Install Swift
15+
uses: slashmo/install-swift@v0.3.0
16+
with:
17+
version: ${{ matrix.swift }}
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Swift Version
21+
run: swift --version
22+
- name: Build (Debug)
23+
run: swift build -c debug
24+
- name: Build (Release)
25+
run: swift build -c release
26+
27+
test:
28+
name: Test
29+
strategy:
30+
matrix:
31+
swift: [5.7]
32+
os: [ubuntu-20.04, macos-latest]
33+
runs-on: ${{ matrix.os }}
34+
steps:
35+
- name: Install Swift
36+
uses: slashmo/install-swift@v0.3.0
37+
with:
38+
version: ${{ matrix.swift }}
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
- name: Swift Version
42+
run: swift --version
43+
- name: Test (Debug)
44+
run: swift test --configuration debug

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build/
77
DerivedData/
88

99
## Various settings
10+
*.DS_Store
1011
*.pbxuser
1112
!default.pbxuser
1213
*.mode1v3
@@ -50,6 +51,7 @@ playground.xcworkspace
5051

5152
# Carthage
5253
Carthage/*
54+
iOS/JGProgressHUD
5355

5456
# fastlane
5557
#
@@ -71,3 +73,5 @@ fastlane/test_output
7173
*.generated.swift
7274
iOS/rswift
7375

76+
# VS Code
77+
.vscode

Assets/StyleKit.pcvd

39 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)