-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (108 loc) · 3.79 KB
/
Tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# --------------------------------------------------------------------------------
# This workflow was automatically generated by ActionBuilderTool 1.1.0 (42).
# (see https://github.com/elegantchaos/ActionBuilderCore for more details)
# --------------------------------------------------------------------------------
name: Tests
on: [push, pull_request]
jobs:
linux-swift56:
name: Linux (Swift 5.6)
runs-on: ubuntu-18.04
container: swift:5.6.2-bionic
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Test (release)
run: swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs
linux-swift57:
name: Linux (Swift 5.7)
runs-on: ubuntu-18.04
container: swiftlang/swift:nightly-5.7-bionic
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Test (release)
run: swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs
macOS-swift56:
name: macOS (Swift 5.6)
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_13.4.1.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- name: Test (release)
run: swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs
macOS-swift57:
name: macOS (Swift 5.7)
env:
TOOLCHAINS: swift
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="swift-5.7-branch"
wget --quiet https://download.swift.org/$branch/xcode/latest-build.yml
grep "download:" < latest-build.yml > filtered.yml
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh
source snapshot.sh
echo "Installing Toolchain: $downloadYML"
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg
sudo installer -pkg $downloadYML-osx.pkg -target /
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest
ls -d /Applications/Xcode*
sudo xcode-select -s /Applications/Xcode_13.4.1.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: Swift Version
run: swift --version
- name: Test (release)
run: export PATH="swift-latest:$PATH"; swift test --configuration release -Xswiftc -enable-testing
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs