-
Notifications
You must be signed in to change notification settings - Fork 28
54 lines (45 loc) · 1.34 KB
/
Copy pathLinux.yml
File metadata and controls
54 lines (45 loc) · 1.34 KB
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
name: Linux
# 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 xvfb' }}
on:
push:
branches: [development, main]
pull_request:
branches: [development, main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
name: ${{ matrix.os }} (Swift ${{ matrix.swift }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
swift: "6.1"
- os: ubuntu-22.04
swift: "6.1"
- os: ubuntu-22.04
swift: "5.10.1"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: SwiftGtk
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift }}
- name: Swift version
run: swift --version
- name: Fetch Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y $UBUNTU_APT
- name: Build
run: cd SwiftGtk && swift build
- name: Test
run: cd SwiftGtk && xvfb-run -a swift test