-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (46 loc) · 1.48 KB
/
test.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
name: CI
on:
push:
branches-ignore:
- '*travis*'
- '*appveyor*'
- '*doozer*'
jobs:
test_on_host:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: 'ubuntu-20.04'
- os: 'ubuntu-22.04'
- os: 'ubuntu-24.04'
steps:
- name: apt hacks
# /etc/apt/sources.list should be sufficient; all the other repositories are possibly problematic
run: |
sudo rm -f /etc/apt/sources.list.d/*.list
sudo apt-get update -qq
if: "startsWith(matrix.os, 'ubuntu-')"
- uses: taiki-e/checkout-action@v1
- uses: eserte/Doit/.github/actions/install-doit-from-github@master
- name: Build and test
run: |
set -e
sudo apt-get install -q --no-install-recommends \
libdb-dev \
apt-file \
cvs \
rcs \
libyaml-libyaml-perl libmodule-build-perl libipc-run-perl libfile-copy-recursive-perl libclass-std-perl
sudo apt-file update
git clone https://github.com/eserte/travis-helper-cpan-pm.git
./travis-helper-cpan-pm/travis-helper-cpan-pm --distroprefs=https://github.com/eserte/srezic-cpan-distroprefs --enable-sysdeps
which cpan
# has to be patched
cpan Slay::Makefile
slaymake -d install-prereqs-with-cpan
echo completed slaymake run
slaymake -d test-t
slaymake -d test-compile
if: "!startsWith(matrix.os,'windows-')"