Skip to content

Commit dd4a710

Browse files
committed
Update CI workflows to use modern OS and Swift versions
1 parent d0d581a commit dd4a710

13 files changed

Lines changed: 333 additions & 368 deletions
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Linux (gtk4-monorepo)
2+
3+
# Dependencies of this package
4+
env:
5+
UBUNTU_APT: ${{ 'libgtk-4-dev 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' }}
6+
7+
on:
8+
push:
9+
branches: [gtk4-monorepo-development, gtk4-monorepo]
10+
pull_request:
11+
branches: [gtk4-monorepo-development, gtk4-monorepo]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-linux:
19+
name: ${{ matrix.os }} (Swift ${{ matrix.swift }})
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- os: ubuntu-24.04
26+
swift: "6.1"
27+
- os: ubuntu-22.04
28+
swift: "6.1"
29+
- os: ubuntu-22.04
30+
swift: "5.10.1"
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
path: SwiftGtk
36+
37+
- name: Setup Swift
38+
uses: swift-actions/setup-swift@v2
39+
with:
40+
swift-version: ${{ matrix.swift }}
41+
42+
- name: Swift version
43+
run: swift --version
44+
45+
- name: Fetch Linux dependencies
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y $UBUNTU_APT
49+
50+
- name: Build
51+
run: cd SwiftGtk && swift build
52+
53+
- name: Test
54+
run: cd SwiftGtk && swift test

.github/workflows/Linux-gtk4.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Linux (gtk4)
2+
3+
# Dependencies of this package
4+
env:
5+
UBUNTU_APT: ${{ 'libgtk-4-dev 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' }}
6+
7+
on:
8+
push:
9+
branches: [gtk4-development, gtk4]
10+
pull_request:
11+
branches: [gtk4-development, gtk4]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-linux:
19+
name: ${{ matrix.os }} (Swift ${{ matrix.swift }})
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- os: ubuntu-24.04
26+
swift: "6.1"
27+
- os: ubuntu-22.04
28+
swift: "6.1"
29+
- os: ubuntu-22.04
30+
swift: "5.10.1"
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
path: SwiftGtk
36+
37+
- name: Setup Swift
38+
uses: swift-actions/setup-swift@v2
39+
with:
40+
swift-version: ${{ matrix.swift }}
41+
42+
- name: Swift version
43+
run: swift --version
44+
45+
- name: Fetch Linux dependencies
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y $UBUNTU_APT
49+
50+
- name: Build
51+
run: cd SwiftGtk && swift build
52+
53+
- name: Test
54+
run: cd SwiftGtk && swift test

.github/workflows/Linux.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Linux
2+
3+
# Dependencies of this package
4+
env:
5+
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' }}
6+
7+
on:
8+
push:
9+
branches: [development, main]
10+
pull_request:
11+
branches: [development, main]
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-linux:
19+
name: ${{ matrix.os }} (Swift ${{ matrix.swift }})
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- os: ubuntu-24.04
26+
swift: "6.1"
27+
- os: ubuntu-22.04
28+
swift: "6.1"
29+
- os: ubuntu-22.04
30+
swift: "5.10.1"
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
with:
35+
path: SwiftGtk
36+
37+
- name: Setup Swift
38+
uses: swift-actions/setup-swift@v2
39+
with:
40+
swift-version: ${{ matrix.swift }}
41+
42+
- name: Swift version
43+
run: swift --version
44+
45+
- name: Fetch Linux dependencies
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y $UBUNTU_APT
49+
50+
- name: Build
51+
run: cd SwiftGtk && swift build
52+
53+
- name: Test
54+
run: cd SwiftGtk && swift test

.github/workflows/big-sur.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/bionic.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/catalina.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)