Skip to content

Commit c0b117c

Browse files
committed
ci: add windows swift package tests support
1 parent cb5daee commit c0b117c

File tree

1 file changed

+48
-40
lines changed

1 file changed

+48
-40
lines changed

.github/workflows/main.yml

Lines changed: 48 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -61,50 +61,58 @@ jobs:
6161
{
6262
"os": "ubuntu-20.04",
6363
"swift": "5.6"
64+
},
65+
{
66+
"os": "windows-latest",
67+
"swift": "5.7"
68+
},
69+
{
70+
"os": "windows-latest",
71+
"swift": "5.6"
6472
}
6573
]
6674
}
6775
68-
cocoapods-test:
69-
name: CocoaPods
70-
uses: SwiftyLab/ci/.github/workflows/cocoapods.yml@main
71-
strategy:
72-
matrix:
73-
platforms: ['macos tvos', 'ios']
74-
with:
75-
platforms: ${{ matrix.platforms }}
76+
# cocoapods-test:
77+
# name: CocoaPods
78+
# uses: SwiftyLab/ci/.github/workflows/cocoapods.yml@main
79+
# strategy:
80+
# matrix:
81+
# platforms: ['macos tvos', 'ios']
82+
# with:
83+
# platforms: ${{ matrix.platforms }}
7684

77-
xcode-test:
78-
name: Xcode
79-
uses: SwiftyLab/ci/.github/workflows/xcode.yml@main
80-
with:
81-
os: macos-12
82-
xcode: '13.3.1'
85+
# xcode-test:
86+
# name: Xcode
87+
# uses: SwiftyLab/ci/.github/workflows/xcode.yml@main
88+
# with:
89+
# os: macos-12
90+
# xcode: '13.3.1'
8391

84-
ci:
85-
name: CI
86-
if: github.event_name == 'push'
87-
needs: [swift-package-test, xcode-test, cocoapods-test]
88-
# needs: [analyze, swift-package-test, xcode-test, cocoapods-test]
89-
uses: SwiftyLab/ci/.github/workflows/ci.yml@main
92+
# ci:
93+
# name: CI
94+
# if: github.event_name == 'push'
95+
# needs: [swift-package-test, xcode-test, cocoapods-test]
96+
# # needs: [analyze, swift-package-test, xcode-test, cocoapods-test]
97+
# uses: SwiftyLab/ci/.github/workflows/ci.yml@main
9098

91-
cd:
92-
name: CD
93-
if: |
94-
(github.event_name == 'push' && needs.ci.outputs.release == 'true') ||
95-
(always() &&
96-
github.event_name == 'workflow_dispatch' &&
97-
github.event.inputs.release == 'true' &&
98-
needs.swift-package-test.result == 'success' &&
99-
needs.xcode-test.result == 'success' &&
100-
needs.cocoapods-test.result == 'success' &&
101-
(needs.ci.result == 'success' || needs.ci.result == 'skipped'))
102-
# (needs.analyze.result == 'success' || needs.analyze.result == 'skipped')
103-
needs: [ci, swift-package-test, xcode-test, cocoapods-test]
104-
# needs: [ci, analyze, swift-package-test, xcode-test, cocoapods-test]
105-
uses: SwiftyLab/ci/.github/workflows/cd.yml@main
106-
with:
107-
os: macos-12
108-
version: ${{ github.event.inputs.version }}
109-
secrets:
110-
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
99+
# cd:
100+
# name: CD
101+
# if: |
102+
# (github.event_name == 'push' && needs.ci.outputs.release == 'true') ||
103+
# (always() &&
104+
# github.event_name == 'workflow_dispatch' &&
105+
# github.event.inputs.release == 'true' &&
106+
# needs.swift-package-test.result == 'success' &&
107+
# needs.xcode-test.result == 'success' &&
108+
# needs.cocoapods-test.result == 'success' &&
109+
# (needs.ci.result == 'success' || needs.ci.result == 'skipped'))
110+
# # (needs.analyze.result == 'success' || needs.analyze.result == 'skipped')
111+
# needs: [ci, swift-package-test, xcode-test, cocoapods-test]
112+
# # needs: [ci, analyze, swift-package-test, xcode-test, cocoapods-test]
113+
# uses: SwiftyLab/ci/.github/workflows/cd.yml@main
114+
# with:
115+
# os: macos-12
116+
# version: ${{ github.event.inputs.version }}
117+
# secrets:
118+
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

0 commit comments

Comments
 (0)