-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (47 loc) · 1.25 KB
/
monterey.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
name: macOS 12
# Dependencies of this package
env:
MACOS_BREW: ${{ 'gdk-pixbuf glib glib-networking gobject-introspection pkg-config jq' }}
on:
push:
branches:
- development
- main
pull_request:
branches:
- development
- main
jobs:
# macOS tasks
build-mac-monterey-latest:
runs-on: macos-12.0
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.3.1'
- name: Print Swift version to confirm
run: swift --version
- name: Fetch dependencies for general repository
run: brew install $MACOS_BREW
- name: Checkout SwiftGdkPixbuf
uses: actions/checkout@v2
with:
path: SwiftGdkPixbuf
- name: Build SwiftGdkPixbuf
run: |
cd SwiftGdkPixbuf
swift build `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Test SwiftGdkPixbuf
run: |
cd SwiftGdkPixbuf
swift test `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Remove unneeded files and archive artefacts
run: |
cd SwiftGdkPixbuf
swift package clean
rm -rf .build/repositories
cd ..