-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (46 loc) · 1.21 KB
/
focal.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
50
51
52
53
54
name: Ubuntu 20.04
# Dependencies of this package
env:
UBUNTU_APT: ${{ 'libcairo2-dev libcairo-gobject2 libglib2.0-dev glib-networking gobject-introspection libgirepository1.0-dev libxml2-dev jq' }}
on:
push:
branches:
- development
- main
pull_request:
branches:
- development
- main
jobs:
# Ubuntu 20.04 tasks
build-ubuntu-20_04-swift-latest:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: YOCKOW/Action-setup-swift@v1
with:
swift-version: '5.6.1'
- name: Print Swift version to confirm
run: swift --version
- name: Fetch dependencies for general repository
run: sudo apt-get install $UBUNTU_APT
- name: Checkout SwiftCairo
uses: actions/checkout@v2
with:
path: SwiftCairo
- name: Build SwiftCairo
run: |
cd SwiftCairo
swift build
cd ..
- name: Test SwiftCairo
run: |
cd SwiftCairo
swift test
cd ..
- name: Remove unneeded files and archive artefacts
run: |
cd SwiftCairo
swift package clean
rm -rf .build/repositories
cd ..