Repository navigation
116 lines (105 loc) · 4.3 KB
/
Copy pathlinux.yml
File metadata and controls
116 lines (105 loc) · 4.3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Linux: builds ActionUI's Linux package (the core and the GTK 4 / libadwaita renderer), runs its
# tests that need no display, then the renderer tests on a headless GNOME display (Mutter), in an
# Ubuntu 26.04 container: the renderer targets Ubuntu 26.04's GTK and libadwaita, which the stock
# runner images are older than. The steps are in Scripts/ci-linux.sh.
#
# Runs on pushes to every branch (branches that merge main run it too) and on pull requests,
# except when only documentation, or only what other platforms build, changed.
name: Linux
on:
# Branches only: a tag push would run it too, and GitHub applies no path filter to tags.
# A later pattern overrides an earlier one: the ! ones leave out what cannot change a Linux build.
push:
branches: ['**']
paths:
- '**'
- '!**.md'
- '!Documentation/**'
# What only the other platforms build: the WinUI renderer, the Android and browser renderers (but the symbol
# map and its font pin, which the GTK symbols come from), the SwiftUI renderer and the Xcode project, and the
# other platforms' workflows and scripts.
- '!ActionUIWinUI/**'
- '!ActionUIWinUIApplication/**'
- '!ActionUIAndroid/**'
- 'ActionUIAndroid/library/material-symbols-font.commit'
- 'ActionUIAndroid/library/src/main/assets/symbols/**'
- '!ActionUIWeb/**'
- '!ActionUI/Common/**'
- '!ActionUI/Helpers/**'
- '!ActionUI/Scenes/**'
- '!ActionUI/Views/**'
- '!ActionUI.xcodeproj/**'
- '!.github/workflows/windows.yml'
- '!.github/workflows/macos.yml'
- '!.github/workflows/release.yml'
- '!Scripts/ci-windows.py'
- '!Scripts/ci-macos.sh'
- '!Scripts/prepare-windows-symbols.py'
pull_request:
paths:
- '**'
- '!**.md'
- '!Documentation/**'
# What only the other platforms build: the WinUI renderer, the Android and browser renderers (but the symbol
# map and its font pin, which the GTK symbols come from), the SwiftUI renderer and the Xcode project, and the
# other platforms' workflows and scripts.
- '!ActionUIWinUI/**'
- '!ActionUIWinUIApplication/**'
- '!ActionUIAndroid/**'
- 'ActionUIAndroid/library/material-symbols-font.commit'
- 'ActionUIAndroid/library/src/main/assets/symbols/**'
- '!ActionUIWeb/**'
- '!ActionUI/Common/**'
- '!ActionUI/Helpers/**'
- '!ActionUI/Scenes/**'
- '!ActionUI/Views/**'
- '!ActionUI.xcodeproj/**'
- '!.github/workflows/windows.yml'
- '!.github/workflows/macos.yml'
- '!.github/workflows/release.yml'
- '!Scripts/ci-windows.py'
- '!Scripts/ci-macos.sh'
- '!Scripts/prepare-windows-symbols.py'
workflow_dispatch:
permissions:
contents: read
# A newer push to the same branch or pull request cancels the run still going, except on main,
# where every commit keeps its result.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build-and-test:
name: Build and test (${{ matrix.arch }})
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubuntu-24.04
- arch: aarch64
runner: ubuntu-24.04-arm
runs-on: ${{ matrix.runner }}
container: ubuntu:26.04
timeout-minutes: 60
env:
ACTIONUI_CI_SWIFT: '6.4.2'
steps:
# The image has no git; without it actions/checkout downloads an archive instead of cloning.
- name: Install git
run: |
apt-get -q -y -o Dpkg::Use-Pty=0 update
DEBIAN_FRONTEND=noninteractive apt-get -q -y -o Dpkg::Use-Pty=0 install --no-install-recommends git ca-certificates
# Actions are named by commit, which cannot be moved as a tag can; the comment names its release.
- name: Check out
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- name: Install Swift and the GTK development packages
run: Scripts/ci-linux.sh install
- name: Build
run: Scripts/ci-linux.sh build
- name: Test
run: Scripts/ci-linux.sh test
- name: Install the headless display and media
run: Scripts/ci-linux.sh install-gui
- name: Test the renderer on a headless display
run: Scripts/ci-linux.sh test-gui