-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (45 loc) · 1.06 KB
/
ci.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
name: CI
on:
push:
paths-ignore: ['**/*.md']
pull_request:
paths-ignore: ['**/*.md']
workflow_dispatch:
jobs:
linux:
runs-on: ubuntu-latest
container: swift:5.9
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: swift build
macos:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
if: runner.os == 'macOS'
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
# Current encounters errors in civetweb.
continue-on-error: true
run: |
swift build && exit 0 || echo "::error:: Build step failed"
windows:
runs-on: windows-latest
steps:
- uses: compnerd/gha-setup-swift@main
if: runner.os == 'Windows'
with:
branch: swift-5.9-release
tag: 5.9-RELEASE
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: swift build