Skip to content

Commit

Permalink
Merge pull request #790 from gugod/ci-parallel
Browse files Browse the repository at this point in the history
split the workflow
  • Loading branch information
gugod authored Aug 23, 2023
2 parents 6e2c694 + 108a3a6 commit 770faea
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ name: CI
on: pull_request

jobs:
TestDist:
mbtiny-dist:
runs-on: ubuntu-latest
name: Test the dist
container:
image: perl:5.38
steps:
- uses: actions/checkout@v2
- name: mbtiny dist
uses: docker://docker.io/library/perl:5.36
- run: cpanm --quiet --notest App::ModuleBuildTiny
- run: mbtiny dist
- run: echo ./App-perlbrew-*.tar.gz
- uses: actions/upload-artifact@v3
with:
args: |
bash -c "
cpanm --quiet --notest App::ModuleBuildTiny
mbtiny dist
echo ./App-perlbrew-*.tar.gz
"
- name: install on perl 5.36
uses: docker://docker.io/library/perl:5.36
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- name: install on perl 5.34
uses: docker://docker.io/library/perl:5.34
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- name: install on perl 5.14
uses: docker://docker.io/library/perl:5.14
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
- name: install on perl 5.12
uses: docker://docker.io/library/perl:5.12
name: App-perlbrew-tarball
path: ./App-perlbrew-*.tar.gz
retention-days: 5

cpanm-dist:
needs: mbtiny-dist
strategy:
matrix:
version: ["5.38", "5.36", "5.18"]
name: cpanm-dist-perl-${{ matrix.version }}
runs-on: ubuntu-latest
container:
image: perl:${{ matrix.version }}
steps:
- uses: actions/download-artifact@v3
with:
args: bash -c "cpanm --verbose ./App-perlbrew-*.tar.gz"
name: App-perlbrew-tarball
- run: echo ./App-perlbrew-*.tar.gz
- run: cpanm --verbose ./App-perlbrew-*.tar.gz

0 comments on commit 770faea

Please sign in to comment.