forked from rhx/SwiftGtk
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 1.68 KB
/
bionic.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Ubuntu 18.04
# Dependencies of this package
env:
UBUNTU_APT: ${{ 'libgtk-3-dev gir1.2-gtk-3.0 gir1.2-gtksource-3.0 libpango1.0-dev gir1.2-pango-1.0 libgdk-pixbuf2.0-dev gir1.2-gdkpixbuf-2.0 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 18.04 tasks
build-ubuntu-18_04-swift-latest:
runs-on: ubuntu-18.04
steps:
- name: Print Swift version to confirm
run: swift --version
- name: Update package repository
run: sudo apt-get update
- name: Fetch dependencies for general repository
run: sudo apt-get install $UBUNTU_APT
- name: Checkout SwiftGtk
uses: actions/checkout@v2
with:
path: SwiftGtk
- name: Build Swift Wrappers
run: |
cd SwiftGtk
./run-gir2swift.sh
echo "GIR2SWIFT_PATH=${PWD}/checkouts/gir2swift/.build/release/gir2swift" >> $GITHUB_ENV
cd ..
- name: Build SwiftGtk
run: |
cd SwiftGtk
swift build -Xswiftc -suppress-warnings
cd ..
# - name: Test SwiftGtk
# run: |
# cd SwiftGtk
# swift test
# cd ..
- name: Remove unneeded files and archive artefacts
run: |
cd SwiftGtk
swift package clean
rm -rf .build/repositories
cd ..
- name: 'Upload Artefact'
uses: actions/upload-artifact@v2
with:
name: build-artefact-18.04-5.3
path: |
SwiftGtk/Sources/
retention-days: 1