-
Notifications
You must be signed in to change notification settings - Fork 10
63 lines (54 loc) · 1.41 KB
/
macOS.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
name: macOS
# Dependencies of this package
env:
MACOS_BREW: ${{ 'libxml2 gobject-introspection' }}
on:
push:
branches:
- development
- main
pull_request:
branches:
- development
- main
jobs:
build-macos:
strategy:
matrix:
os: [macos-14, macos-13]
name: macOS version ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Print macOS and Swift version
run: |
uname -a
swift --version
- name: Fetch macOS dependencies
run: |
brew install python@3 || brew link --overwrite python@3
brew install $MACOS_BREW
mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig || sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig
- name: Checkout gir2swift
uses: actions/checkout@v4
with:
path: gir2swift
- name: Build gir2swift
run: |
cd gir2swift
swift build
cd ..
- name: Test gir2swift
run: |
cd gir2swift
swift test
cd ..
- name: Remove unneeded files and archive artefacts
run: |
rm -rf _tempGTK
cd gir2swift
swift package clean
rm -rf .build/repositories
cd ..