Skip to content

Commit 0e79c77

Browse files
committed
Add GH action workflow
1 parent e11a38b commit 0e79c77

File tree

3 files changed

+38
-9
lines changed

3 files changed

+38
-9
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
macOS:
12+
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
xcode: ['13.4.1', '14.1']
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Select Xcode ${{ matrix.xcode }}
19+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
20+
- name: Get swift version
21+
run: swift --version
22+
- name: Test
23+
run: swift test
24+
- name: Build release
25+
run: swift build -c release
26+
27+
Linux:
28+
runs-on: ubuntu-latest
29+
container:
30+
image: swiftlang/swift@sha256:f212429011a4c3592ffaa660fd78b5bc149e9df7920da02dfc0e7a761582fa10 # swiftlang/swift:nightly-5.9-focal 2023-08-16
31+
steps:
32+
- uses: actions/checkout@v3
33+
- name: Get swift version
34+
run: swift --version
35+
- name: Test
36+
run: swift test
37+
- name: Build release
38+
run: swift build -c release

.swift-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)