-
Notifications
You must be signed in to change notification settings - Fork 26
62 lines (52 loc) · 1.45 KB
/
catalina.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
name: macOS 10.15
# Dependencies of this package
env:
MACOS_BREW: ${{ 'gtk+3 pango glib glib-networking gobject-introspection pkg-config jq' }}
on:
push:
branches:
- swift52
pull_request:
branches:
- swift52
jobs:
# macOS tasks
build-mac-catalina-swift-latest:
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.4'
- name: Print Swift version to confirm
run: swift --version
- name: Fetch dependencies for general repository
run: brew install $MACOS_BREW
- name: Checkout SwiftGtk
uses: actions/checkout@v2
with:
ref: swift52
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 `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Test SwiftGtk
run: |
cd SwiftGtk
swift test `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Remove unneeded files and archive artefacts
run: |
cd SwiftGtk
swift package clean
rm -rf .build/repositories
cd ..