Skip to content

Commit 8e4de4e

Browse files
authored
Merge pull request #7 from YOCKOW/development
Confirm compatibility with Swift 5.4.
2 parents 4b1cd83 + da2ee92 commit 8e4de4e

File tree

3 files changed

+7
-43
lines changed

3 files changed

+7
-43
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,24 @@ jobs:
3737
build-${{ github.workspace }}-
3838
- uses: YOCKOW/Action-setup-swift@master
3939
with:
40-
swift-version: '5.3'
41-
40+
swift-version: '5.4'
41+
# DEBUG mode
4242
- name: Try to build products with debug mode.
43+
id: debug_build
4344
run: swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
4445
continue-on-error: true
4546
- name: Clean debug build directory if necessary
46-
if: failure()
47+
if: steps.debug_build.outcome == 'failure'
4748
run: rm -rf $(cd .build/debug && pwd -P)
48-
- name: Check XCTestManifests.swift
49-
if: runner.os == 'macOS'
50-
run: |
51-
swift test --generate-linuxmain -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
52-
git diff --exit-code
5349
- name: Test with debug mode.
5450
run: swift test --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
55-
51+
# RELEASE mode
5652
- name: Try to build products with release mode.
53+
id: release_build
5754
run: swift build --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
5855
continue-on-error: true
5956
- name: Clean release build directory if necessary
60-
if: failure()
57+
if: steps.release_build.outcome == 'failure'
6158
run: rm -rf $(cd .build/release && pwd -P)
6259
- name: Test with release mode.
6360
run: swift test --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}

Tests/LinuxMain.swift

Lines changed: 0 additions & 8 deletions
This file was deleted.

Tests/TimeSpecificationTests/XCTestManifests.swift

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)