-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (65 loc) · 2.02 KB
/
build.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
on:
push:
workflow_dispatch:
inputs:
ref:
type: string
default: master
description: The ref of saucer to use
name: 🏗️ Build Bindings
jobs:
build:
strategy:
fail-fast: false
matrix:
backend: [WebKit, WebKitGtk, WebView2, WebView2-Hack, Qt5, Qt6]
config: [Debug, Release, RelWithDebInfo, MinSizeRel]
include:
- backend: WebView2
platform: Windows
os: windows-latest
- backend: WebView2-Hack
backend-override: WebView2
platform: Windows
os: windows-latest
cmake-args: -Dsaucer_msvc_hack=ON
- backend: Qt5
platform: Linux
os: ubuntu-latest
container: archlinux:base-devel
- backend: Qt6
platform: Linux
os: ubuntu-latest
container: archlinux:base-devel
- backend: WebKitGtk
platform: Linux
os: ubuntu-latest
container: archlinux:base-devel
- backend: WebKit
platform: MacOS
os: macos-latest
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
name: bindings-${{ matrix.backend }}-${{ matrix.config }}
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 📥 Checkout Saucer
uses: actions/checkout@v4
with:
repository: "saucer/saucer"
sparse-checkout: ".github"
path: "actions"
ref: ${{ github.event.inputs.ref || 'master' }}
- name: 🛸 Setup Saucer
uses: ./actions/.github/actions/setup
with:
backend: ${{ matrix.backend-override || matrix.backend }}
platform: ${{ matrix.platform }}
build-type: ${{ matrix.config }}
cmake-args: ${{ matrix.cmake-args }}
- name: 📦 Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Binding (${{ matrix.backend }}-${{ matrix.config }})
path: build