-
Notifications
You must be signed in to change notification settings - Fork 46
65 lines (64 loc) · 2.15 KB
/
downstream-testing.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
name: downstream testing
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
build-docker:
runs-on: ubuntu-latest
outputs:
project-matrix: ${{ steps.set-matrix.outputs.project-matrix }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: PDLPorters/devops
ref: master
path: .github/devops
- run: make -C .github/devops/docker -f Makefile.docker docker.pdl PATH_TO_PDL=$(pwd)
- run: docker save pdl:latest --output pdl-latest.tar
- uses: actions/upload-artifact@v4
with:
name: pdl-latest-image
path: pdl-latest.tar
- uses: perl-actions/install-with-cpanm@v1
- id: set-matrix
run: |
(cpanm --local-lib=~/perl5 local::lib || ( cat ~/.cpanm/build.log && false )) && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
make -C .github/devops/docker -f Makefile.docker deps-lib gen-ci-matrix
downstream-docker:
runs-on: ubuntu-latest
needs: build-docker
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.build-docker.outputs.project-matrix) }}
steps:
- uses: actions/download-artifact@v4
with:
name: pdl-latest-image
path: .
- run: docker load --input pdl-latest.tar
- uses: actions/checkout@v2
with:
repository: PDLPorters/devops
ref: master
path: .github/devops
- uses: perl-actions/install-with-cpanm@v1
- run: |
(cpanm --local-lib=~/perl5 local::lib || ( cat ~/.cpanm/build.log && false )) && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
make -C .github/devops/docker -f Makefile.docker deps-lib
make -C .github/devops/docker -f Makefile.docker run-ci-key KEY=${{ matrix.key }}
build-status:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ failure() }}
needs: [ 'downstream-docker' ]
steps:
- uses: PDLPorters/devops/github-actions/irc-notifications@master
with:
target-build-status: true
build-status-source: 'downstream'
needs: ${{ toJSON(needs) }}