forked from apple/swift-mmio
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.12 KB
/
swift.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
name: Swift
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container: swift:6.0-jammy
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: apt-get -qq update && apt-get -qq -y install make
- name: Lint
run: make lint
test:
name: Swift (${{ matrix.swift.version }}) / Ubuntu (${{ matrix.os.version }})
runs-on: ubuntu-latest
needs: lint
strategy:
fail-fast: false
matrix:
os:
- name: jammy
version: "22.04"
swift:
- repo: swift
version: "6.0"
- repo: swiftlang/swift
version: "nightly-main"
container: ${{ matrix.swift.repo }}:${{ matrix.swift.version }}-${{ matrix.os.name }}
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: apt-get -qq update && apt-get -qq -y install make
- name: Build & Test
run: make test CONFIGURATION=release