File tree Expand file tree Collapse file tree 3 files changed +7
-43
lines changed Expand file tree Collapse file tree 3 files changed +7
-43
lines changed Original file line number Diff line number Diff 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 }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments