-
Notifications
You must be signed in to change notification settings - Fork 2
94 lines (94 loc) · 2.37 KB
/
ci.yml
File metadata and controls
94 lines (94 loc) · 2.37 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
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
perl-version:
- 'latest'
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:${{ matrix.perl-version }} # https://hub.docker.com/r/perldocker/perl-tester
name: Linux ${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- name: Prepare
run: |
uname -a
perl -V
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99no-check-valid-until
apt-get update
apt-get install -y xvfb libx11-dev libxpm-dev libxi-dev libxmu-dev freeglut3-dev libglu1-mesa-dev
cpanm Prima OpenGL::Modern
- name: Build
run: |
perl Makefile.PL
make
- name: Test
run: |
xvfb-run -a make test
strawberry:
strategy:
fail-fast: false
matrix:
perl-version:
- 'latest'
runs-on: windows-latest
name: Strawberry ${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: strawberry
- name: Prepare
run: |
uname -a
perl -V
cpanm Prima OpenGL::Modern
- name: Build
run: |
perl Makefile.PL
gmake
- name: Test
run: |
gmake test
macos:
strategy:
fail-fast: false
matrix:
perl-version:
- 'latest'
runs-on: macos-latest
name: MacOSX ${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Prepare
env:
OGLM_ADD_DEFINE: '-DGLEW_APPLE_GLX -I/opt/X11/include'
OGLM_ADD_LIBS: '-L/opt/X11/lib -lglut'
OGLM_REPLACE_OTHERLDFLAGS: ''
run: |
uname -a
perl -V
brew install freeglut mesa-glu
cpanm Prima OpenGL::Modern
- name: Build
run: |
perl Makefile.PL
make
- name: Test
run: |
make test