Skip to content

Commit

Permalink
Merge pull request #1 from MillerTechnologyPeru/feature/swift-5_7
Browse files Browse the repository at this point in the history
Updated for Swift 5.7.1
  • Loading branch information
colemancda authored Nov 19, 2022
2 parents 0dad8e6 + ae2fc2a commit 0554e76
Show file tree
Hide file tree
Showing 395 changed files with 30,994 additions and 4,973 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# These are supported funding model platforms
ko_fi: colemancda
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
**Issue**

Fixes #1.

**What does this PR Do?**

Description of the changes in this pull request.

**Where should the reviewer start?**

`main.swift`

**Sweet giphy showing how you feel about this PR**

![Giphy](https://media.giphy.com/media/rkDXJA9GoWR2/giphy.gif)
28 changes: 28 additions & 0 deletions .github/workflows/buildroot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Buildroot

on: [push]

jobs:

buildroot-armv7-build:
name: Build Armv7
runs-on: ubuntu-20.04
container: colemancda/swift-buildroot:amd64-prebuilt-armv7
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Swift Version
run: swift --version
- name: Build
run: |
cd /usr/src/buildroot-external
export SWIFT_ARCH=armv7
export SWIFT_PACKAGE_PATH=$GITHUB_WORKSPACE
export SWIFTPM_DISABLE_PLUGINS=1
swift --version
./build-swift-package.sh
- name: Archive Build artifacts
uses: actions/upload-artifact@v3
with:
name: swiftpm-build-armv7
path: .build/*/*.xctest
71 changes: 71 additions & 0 deletions .github/workflows/swift-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Swift ARM

on: [push]

jobs:

linux-swift-armv7-debian-build:
name: Build for Debian Armv7
runs-on: ubuntu-20.04
strategy:
matrix:
swift: [5.6.1, 5.7]
container: colemancda/swift-armv7:${{ matrix.swift }}-prebuilt
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Swift Version
run: swift --version
- name: Build
run: |
cd /usr/src/swift-armv7
export SWIFT_PACKAGE_SRCDIR=$GITHUB_WORKSPACE
export SWIFT_PACKAGE_BUILDDIR=$SWIFT_PACKAGE_SRCDIR/.build
mkdir -p $SWIFT_PACKAGE_BUILDDIR
mkdir -p /usr/src/swift-armv7/build/
./generate-swiftpm-toolchain.sh
./build-swift-package.sh
- name: Archive unit tests
uses: actions/upload-artifact@v3
with:
name: swift-${{ matrix.swift }}-debian-armv7-xctest
path: .build/*/*.xctest
- name: Archive Lock daemon
uses: actions/upload-artifact@v3
with:
name: swift-${{ matrix.swift }}-debian-armv7-lockd
path: .build/*/lockd

linux-swift-arm64-build:
name: Build for Linux Arm64
runs-on: [Linux, ARM64]
strategy:
matrix:
swift: [5.6.3-focal, 5.7-jammy]
container: swift:${{ matrix.swift }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release

linux-swift-arm64-test:
name: Build for Linux Arm64
runs-on: [Linux, ARM64]
strategy:
matrix:
swift: [5.6.3-focal, 5.7-jammy]
container: swift:${{ matrix.swift }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Test (Debug)
run: swift test --configuration debug
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing
44 changes: 44 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Swift

on: [push]

jobs:
build:
name: Build
strategy:
matrix:
swift: [5.6.3, 5.7]
os: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
uses: slashmo/install-swift@v0.3.0
with:
version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Build (Debug)
run: swift build -c debug
- name: Build (Release)
run: swift build -c release

test:
name: Test
strategy:
matrix:
swift: [5.7]
os: [ubuntu-20.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Swift
uses: slashmo/install-swift@v0.3.0
with:
version: ${{ matrix.swift }}
- name: Checkout
uses: actions/checkout@v2
- name: Swift Version
run: swift --version
- name: Test (Debug)
run: swift test --configuration debug
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ build/
DerivedData/

## Various settings
*.DS_Store
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down Expand Up @@ -50,6 +51,7 @@ playground.xcworkspace

# Carthage
Carthage/*
iOS/JGProgressHUD

# fastlane
#
Expand All @@ -71,3 +73,5 @@ fastlane/test_output
*.generated.swift
iOS/rswift

# VS Code
.vscode
Binary file modified Assets/StyleKit.pcvd
Binary file not shown.
Loading

0 comments on commit 0554e76

Please sign in to comment.