Skip to content

Commit 89928a1

Browse files
committed
Add GitHub Actions
1 parent 5017835 commit 89928a1

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Continuous Integration (CI)
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
build:
12+
env:
13+
DEVELOPER_DIR: /Applications/Xcode_12.app/Contents/Developer
14+
runs-on: macos-10.15
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Install libssh Dependency
19+
run: brew install libssh
20+
- name: Build (Debug)
21+
run: swift build
22+
- name: Build (Release)
23+
run: swift build -c release
24+
test:
25+
env:
26+
DEVELOPER_DIR: /Applications/Xcode_12.2.app/Contents/Developer
27+
runs-on: macos-10.15
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v1
31+
- name: Install libssh Dependency
32+
run: brew install libssh
33+
- name: Test
34+
run: swift test

0 commit comments

Comments
 (0)