-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (63 loc) · 1.64 KB
/
build.yaml
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
# Workflow for GitHub Actions testing.
#
# Copyright 2016, 2018-2021 Russ Allbery <[email protected]>
#
# SPDX-License-Identifier: MIT
name: build
on:
push:
branches-ignore:
- "debian/**"
- "pristine-tar"
- "ubuntu/**"
- "upstream/**"
tags:
- "release/*"
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
AUTHOR_TESTING: 1
C_TAP_VERBOSE: 1
strategy:
fail-fast: false
matrix:
kerberos:
- "mit"
- "heimdal"
steps:
- uses: actions/checkout@v3
- name: install
run: sudo -E ci/install
- name: Get Perl version
id: get-perl
run: |
perl -e 'print "::set-output name=version::", $^V, "\n"'
- name: Cache Perl modules
uses: actions/cache@v3
with:
path: ~/perl5
key: ${{ runner.os }}-perl-${{ steps.get-perl.outputs.version }}-${{ hashFiles('ci/cpanfile') }}
restore-keys: |
${{ runner.os }}-perl-${{ steps.get-perl.outputs.version }}-
- uses: perl-actions/[email protected]
env:
PERL5LIB: ${{ env.HOME }}/perl5
with:
args: "--local-lib=~/perl5 --with-suggests --notest"
cpanfile: ci/cpanfile
path: /usr/bin/cpanm
sudo: false
- name: kdc-setup-mit
run: sudo ci/kdc-setup-mit
if: matrix.kerberos == 'mit'
- name: kdc-setup-heimdal
run: sudo ci/kdc-setup-heimdal
if: matrix.kerberos == 'heimdal'
- name: test
run: ci/test
env:
KERBEROS: ${{ matrix.kerberos }}