-
-
Notifications
You must be signed in to change notification settings - Fork 313
56 lines (54 loc) · 1.57 KB
/
relocatability.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
name: Relocatability
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
branches:
- master
- breaking-0.22
push:
tags:
- '*'
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
makie-relocatability:
name: Relocatability ${{ matrix.backend }}
env:
MODERNGL_DEBUGGING: "true" # turn on errors when running OpenGL tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
os:
- ubuntu-20.04
arch:
- x64
backend:
- GLMakie
- WGLMakie
- CairoMakie
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- name: Install dependencies for GPU backends
if: matrix.backend != 'CairoMakie'
run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils
- name: Relocatability test
run: |
if [ "${{ matrix.backend }}" != "CairoMakie" ]; then
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --color=yes ./relocatability.jl ${{ matrix.backend }}
else
julia --color=yes ./relocatability.jl ${{ matrix.backend }}
fi