-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.31 KB
/
Copy pathvalidate.yml
File metadata and controls
50 lines (42 loc) · 1.31 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
name: validate
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: validate-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
name: validate (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Install Linux native deps (GTK 4 + WebKitGTK 6.0 + Xvfb)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-4-1 libwebkitgtk-6.0-4 xvfb
- uses: oven-sh/setup-bun@v2
with:
bun-version-file: .bun-version
- name: Install dependencies
run: bun install --frozen-lockfile
# WebKitGTK's bubblewrap sandbox and GPU acceleration are unavailable on
# the headless runner; disable them so the GTK/WebKitGTK tests can run.
- name: Validate (Linux — under Xvfb for GTK tests)
if: runner.os == 'Linux'
env:
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS: "1"
WEBKIT_DISABLE_COMPOSITING_MODE: "1"
LIBGL_ALWAYS_SOFTWARE: "1"
GDK_BACKEND: x11
run: xvfb-run -a bun run validate
- name: Validate (macOS)
if: runner.os == 'macOS'
run: bun run validate