-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (37 loc) · 1.17 KB
/
ci.yaml
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
name: CI
on:
push:
pull_request:
jobs:
ci:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, macos-latest]
swift:
[
5.7,
swift-DEVELOPMENT-SNAPSHOT-2023-01-18-a,
swift-5.8-DEVELOPMENT-SNAPSHOT-2023-01-13-a,
]
include:
- swift: 5.7
expected-version-string: "Swift version 5.7 (swift-5.7-RELEASE)"
- swift: swift-DEVELOPMENT-SNAPSHOT-2023-01-18-a
expected-version-string: "Swift version 5.9-dev (LLVM 3f23b4ceaf01213, Swift 0763e4b98c74b5b)"
- swift: swift-5.8-DEVELOPMENT-SNAPSHOT-2023-01-13-a
expected-version-string: "Swift version 5.8-dev (LLVM 08f7fecaf6cedb8, Swift 7632e9a645bcb05)"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Swift
uses: ./
with:
version: ${{ matrix.swift }}
- name: Print Swift Version
run: swift --version
- name: Check Swift Version
run: |
set -e
swift --version | grep "${{ matrix.expected-version-string }}"