-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.18 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
# Workflow for GitHub Actions testing.
#
# Copyright 2015-2020, 2022 Russ Allbery <[email protected]>
#
# SPDX-License-Identifier: MIT
name: build
on:
push:
branches:
- "*"
tags:
- "release/*"
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
AUTHOR_TESTING: 1
C_TAP_VERBOSE: 1
steps:
- uses: actions/checkout@v4
- 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/install-with-cpanm@v1
env:
PERL5LIB: ${{ env.HOME }}/perl5
with:
args: "--local-lib=~/perl5 --with-suggests --notest"
cpanfile: ci/cpanfile
path: /usr/bin/cpanm
sudo: false
- name: test
run: ci/test