File: build.yaml

package info (click to toggle)
kstart 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,884 kB
  • sloc: ansic: 5,937; sh: 4,785; perl: 2,130; makefile: 142
file content (76 lines) | stat: -rw-r--r-- 1,675 bytes parent folder | download
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 <eagle@eyrie.org>
#
# 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@v2

      - 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@v2
        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/install-with-cpanm@v1.3
        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 }}