Debian Codegraph @

.github/workflows/all.yaml

raw symbols SCIP
1 on:
2 push:
3 branches:
4 - '*'
5 tags-ignore:
6 - '*'
7 pull_request:
8
9 env:
10 PERL_USE_UNSAFE_INC: 0
11 AUTHOR_TESTING: 1
12 AUTOMATED_TESTING: 1
13 RELEASE_TESTING: 1
14 PERL_CARTON_PATH: $GITHUB_WORKSPACE/local
15
16 jobs:
17 linux:
18 runs-on: ubuntu-latest
19
20 strategy:
21 fail-fast: false
22 matrix:
23 perl-version:
24 - '5.42'
25 - '5.40'
26 - '5.38'
27 - '5.36'
28 - '5.34'
29 - '5.32'
30 - '5.30'
31 - '5.28'
32 - '5.26'
33 - '5.24'
34 - '5.22'
35 - '5.20'
36 - '5.18'
37 - '5.16'
38 - '5.14'
39 - '5.12'
40 - '5.10'
41
42 container:
43 image: perldocker/perl-tester:${{ matrix.perl-version }}
44
45 steps:
46 - uses: actions/checkout@main
47 with:
48 submodules: recursive
49 - name: perl -V
50 run: perl -V
51 - name: Install Dependencies
52 run: cpanm --notest --installdeps .
53 - name: perl Makefile.PL
54 run: perl Makefile.PL
55 - name: make
56 run: make
57 - name: Run Tests
58 run: prove -wlvmb t
59
60 macOS:
61 runs-on: macOS-latest
62
63 steps:
64 - uses: actions/checkout@main
65 with:
66 submodules: recursive
67 - name: Set up Perl
68 run: brew install perl
69 - name: perl -V
70 run: perl -V
71 - name: Install Dependencies
72 run: curl -L https://cpanmin.us | perl - --notest --installdeps .
73 - name: perl Makefile.PL
74 run: perl Makefile.PL
75 - name: make
76 run: make
77 - name: Run Tests
78 run: make test
79
80 alpine:
81 runs-on: ubuntu-latest
82
83 name: Alpine ${{ matrix.docker_arch }}
84
85 strategy:
86 fail-fast: false
87 matrix:
88 docker_arch:
89 - i386
90 - s390x
91 - riscv64
92 - ppc64le
93 - amd64
94 - armhf
95 - arm/v7
96 - aarch64
97
98 steps:
99 - uses: actions/checkout@main
100 with:
101 submodules: recursive
102 - name: Get the qemu container
103 run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
104 - name: Run tests
105 run: docker run --rm --interactive --platform linux/${{ matrix.docker_arch }} --mount type=bind,source=$(pwd),target=/host alpine:latest sh -c "apk update && apk add bash curl wget perl perl-dev make git gcc musl-dev && perl -V && cd /host && curl -L https://cpanmin.us | perl - --notest --installdeps . && perl Makefile.PL && (make || make || make || make || make) && prove -wlvmb t"
106
107 qemu:
108 runs-on: ubuntu-latest
109
110 name: ${{ matrix.docker_arch }}, ${{ matrix.image }}
111
112 strategy:
113 fail-fast: false
114 matrix:
115 include:
116 - docker_arch: s390x
117 image: ubuntu:22.04
118 - docker_arch: riscv64
119 image: ubuntu:22.04
120 - docker_arch: ppc64le
121 image: ubuntu:22.04
122 - docker_arch: aarch64
123 image: ubuntu:22.04
124 - docker_arch: arm/v7
125 image: ubuntu:22.04
126 - docker_arch: amd64
127 image: ubuntu:22.04
128 - docker_arch: 386
129 image: debian:bookworm
130
131 steps:
132 - uses: actions/checkout@main
133 with:
134 submodules: recursive
135 - name: Get the qemu container
136 run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
137 - name: Run tests on ${{ matrix.platform }}
138 run: docker run --rm --interactive --platform linux/${{ matrix.docker_arch }} --mount type=bind,source=$(pwd),target=/host ${{ matrix.image }} bash -c "apt update && apt install -y curl perl make git gcc && perl -V && cd /host && curl -L https://cpanmin.us | perl - --notest --installdeps . && perl Makefile.PL && (make || make || make || make || make) && prove -wlvmb t"