-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (116 loc) · 3.39 KB
/
Copy pathci.yml
File metadata and controls
121 lines (116 loc) · 3.39 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
117
118
119
120
121
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
elixir:
name: Elixir unit
runs-on: ubuntu-latest
env:
NO_WX: "1"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26"
elixir-version: "1.18"
- name: Checkout desktop (path dep)
uses: actions/checkout@v4
with:
repository: elixir-desktop/desktop
path: desktop
- run: mix deps.get
- run: mix test --exclude e2e
macos-e2e:
name: macOS host + E2E
runs-on: macos-latest
env:
NO_WX: "1"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26"
elixir-version: "1.18"
- name: Checkout desktop (path dep)
uses: actions/checkout@v4
with:
repository: elixir-desktop/desktop
path: desktop
- name: Build host
run: ./scripts/build_macos.sh
- name: Ad-hoc sign
run: codesign -s - --force --deep priv/native/macos/DesktopWebView || true
- run: mix deps.get
- name: Tests
run: |
mix test --exclude menu_crash
mix test --only menu_crash
env:
DESKTOP_WEBVIEW_BINARY: ${{ github.workspace }}/priv/native/macos/DesktopWebView
linux-e2e:
name: Linux host + E2E
runs-on: ubuntu-latest
env:
NO_WX: "1"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26"
elixir-version: "1.18"
- name: Checkout desktop (path dep)
uses: actions/checkout@v4
with:
repository: elixir-desktop/desktop
path: desktop
- name: Install GTK / WebKitGTK
run: |
sudo apt-get update -qq
sudo apt-get install -y \
build-essential cmake pkg-config \
libgtk-4-dev libwebkitgtk-6.0-dev \
libnotify-dev libjson-glib-dev \
xvfb dbus-x11
- name: Build host
run: ./scripts/build_linux.sh
- run: mix deps.get
- name: E2E under Xvfb
run: |
dbus-run-session -- xvfb-run -a mix test --exclude menu_crash
dbus-run-session -- xvfb-run -a mix test --only menu_crash
env:
DESKTOP_WEBVIEW_BINARY: ${{ github.workspace }}/priv/native/linux/DesktopWebView
WEBKIT_DISABLE_COMPOSITING_MODE: "1"
WEBKIT_DISABLE_DMABUF_RENDERER: "1"
WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS: "1"
LIBGL_ALWAYS_SOFTWARE: "1"
windows-e2e:
name: Windows host + E2E
runs-on: windows-latest
env:
NO_WX: "1"
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26"
elixir-version: "1.18"
- name: Checkout desktop (path dep)
uses: actions/checkout@v4
with:
repository: elixir-desktop/desktop
path: desktop
- name: Build host
shell: pwsh
run: .\scripts\build_windows.ps1
- run: mix deps.get
- name: E2E
shell: pwsh
run: |
mix test --exclude menu_crash
mix test --only menu_crash
env:
DESKTOP_WEBVIEW_BINARY: ${{ github.workspace }}\priv\native\windows\DesktopWebView.exe
WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS: --disable-gpu --disable-gpu-compositing