-
Notifications
You must be signed in to change notification settings - Fork 10
62 lines (53 loc) · 1.32 KB
/
Linux.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: Linux
# Dependencies of this package
env:
UBUNTU_APT: ${{ 'libxml2-dev gobject-introspection libgirepository1.0-dev' }}
on:
push:
branches:
- development
- main
pull_request:
branches:
- development
- main
jobs:
build-linux:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04]
swift: ["5.9", "5.7"]
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- name: Print Linux and Swift version
run: |
lsb_release -d
swift --version
- name: Fetch Linux dependencies
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get install $UBUNTU_APT
- 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 ..