-
Notifications
You must be signed in to change notification settings - Fork 4
126 lines (123 loc) · 4.07 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
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
122
123
124
125
126
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
create:
env:
IRC_REPO_OWNER: 'drzowie'
jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-notifications: true
repository_owner: ${{ env.IRC_REPO_OWNER }}
dist:
name: Make distribution using ExtUtils::MakeMaker
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Gnuplot
uses: PDLPorters/devops/github-actions/install-dep-gnuplot@master
- name: 'build-eumm-dist'
uses: PDLPorters/devops/github-actions/build-eumm-dist@master
with:
dist-perl-deps-configure: ExtUtils::MakeMaker Alien::Build Alien::Build::MM
ci:
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
needs: [ notify, dist ]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
perl-version: ['5.10', '5.14', '5.20', '5.30']
alien-install-type: [ 'system' ]
include:
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
coverage: true
alien-install-type: 'share'
##########################
# Windows | system, share
##########################
- perl-version: '5.30'
os: windows-latest
alien-install-type: 'system'
- perl-version: '5.30'
os: windows-latest
alien-install-type: 'share'
##########################
# macOS | system, share
##########################
- perl-version: '5.30'
os: macos-latest
alien-install-type: 'system'
- perl-version: '5.30'
os: macos-latest
alien-install-type: 'share'
steps:
- uses: actions/checkout@v2
- name: Get dist artifact
uses: actions/download-artifact@v2
with:
name: dist
path: build-dir
- name: 'ci-dist: target-setup-perl'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
path: build-dir
target-setup-perl: true
perl-version: ${{ matrix.perl-version }}
- name: Install Gnuplot (system)
if: ${{ matrix.alien-install-type == 'system' }}
uses: PDLPorters/devops/github-actions/install-dep-gnuplot@master
- name: 'ci-dist: target-install-dist-perl-deps'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
path: build-dir
target-setup-perl: false
target-install-dist-perl-deps: true
- name: Install Perl optional deps
shell: bash
run: |
# test dep
if ${{ toJSON( runner.os != 'Windows' ) }}; then
$MYPERL -S cpanm -n FFI::Platypus || ( cat ~/.cpanm/build.log && false )
fi
- name: Set ALIEN_INSTALL_TYPE
shell: bash
run: |
echo "ALIEN_INSTALL_TYPE=${{ matrix.alien-install-type }}" >> $GITHUB_ENV
- name: 'ci-dist: target-all after install-dist-perl-deps'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
path: build-dir
target-setup-perl: false
target-install-dist-perl-deps: false
target-test-release-testing: true
target-test: true
test-enable-release-testing: ${{ matrix.release-test }}
test-enable-coverage: ${{ matrix.coverage }}
github-token: ${{ secrets.GITHUB_TOKEN }}
build-status:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
needs: [ 'ci' ]
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-build-status: true
needs: ${{ toJSON(needs) }}
repository_owner: ${{ env.IRC_REPO_OWNER }}