Skip to content

Commit 79e90e9

Browse files
authored
Merge pull request mironal#143 from mironal/up-swift5.7
Up swift5.7
2 parents 404e8e3 + 3f419f2 commit 79e90e9

4 files changed

Lines changed: 15 additions & 20 deletions

File tree

.github/workflows/swift.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,18 @@ jobs:
1616
with:
1717
path: BuildTools/.build
1818
key: ${{ runner.os }}-spm-${{ hashFiles('**/BuildTools/Package.resolved') }}
19-
restore-keys: |
20-
${{ runner.os }}-spm-
2119
- uses: fwal/setup-swift@v1
2220
with:
23-
swift-version: "5.6"
21+
swift-version: "5.7"
2422
- name: Install Sourcery
2523
run: brew update && brew install sourcery
2624
- name: Check Flat API
2725
run: ./flat-api.sh -c
28-
- name: Build tools & Lint
26+
- name: Build tools
2927
if: steps.cache-spm.outputs.cache-hit != 'true'
30-
run: swift run -c release --package-path BuildTools swift-format lint -p --strict --recursive ./Sources ./Tests ./scripts
28+
run: ./build_tools.sh
3129
- name: Lint
32-
if: steps.cache-spm.outputs.cache-hit == 'true'
33-
run: |
34-
swift run -c release --skip-build --package-path BuildTools swift-format --version
35-
swift run -c release --skip-build --package-path BuildTools swift-format lint -p --strict --recursive ./Sources ./Tests ./scripts
30+
run: ./lint.sh
3631
- name: Build
3732
run: swift build
3833

BuildTools/Package.resolved

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BuildTools/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.5
22
import PackageDescription
33

44
let package = Package(
55
name: "BuildTools",
66
platforms: [.macOS(.v10_11)],
77
dependencies: [
8-
.package(url: "https://github.com/apple/swift-format", from: "0.50600.1"),
8+
.package(url: "https://github.com/apple/swift-format", from: "0.50700.0"),
99
],
1010
targets: [.target(name: "BuildTools", path: "")]
1111
)

build_tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
swift build -c release --package-path BuildTools
2+
swift build -c release --package-path BuildTools --product swift-format

0 commit comments

Comments
 (0)