Skip to content

Commit 6111313

Browse files
authored
Merge pull request #114 from KarthikRIyer/UbuntuCI
Create SwiftPlot_Ubuntu.yml
2 parents 71f5e6c + 77a6511 commit 6111313

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: SwiftPlot Ubuntu
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Install Freetype
16+
run: sudo apt-get install libfreetype6-dev
17+
- name: Install Swift Dependencies
18+
run: sudo apt-get install clang libicu-dev
19+
- name: Download Swift
20+
run: wget "https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz"
21+
- name: Install Swift
22+
run: |
23+
tar xzf swift-5.1.3-RELEASE-ubuntu18.04.tar.gz
24+
echo "::add-path::$(pwd)/swift-5.1.3-RELEASE-ubuntu18.04/usr/bin"
25+
- name: Build
26+
run: swift build -v
27+
- name: Run tests
28+
run: swift test -v
29+
- name: Upload test artefacts
30+
uses: actions/upload-artifact@v1
31+
if: always()
32+
with:
33+
name: images
34+
path: ./output

0 commit comments

Comments
 (0)