-
Notifications
You must be signed in to change notification settings - Fork 43
50 lines (46 loc) · 1.36 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10'
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
include:
- os: ubuntu-latest
prefix: xvfb-run
exclude:
- os: windows-latest
version: '1.10'
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
# Workaround for Electron issue on Ubuntu
# See https://github.com/electron/electron/issues/42510
- name: Apply Electron sandbox fix on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo chown root /home/runner/.julia/artifacts/cae80dc5ebd42950807d603cea93d970432b956d/chrome-sandbox
sudo chmod 4755 /home/runner/.julia/artifacts/cae80dc5ebd42950807d603cea93d970432b956d/chrome-sandbox
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
prefix: ${{ matrix.prefix }}