Skip to content

Commit

Permalink
tuning github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-m committed Sep 3, 2024
1 parent 645dc0a commit 85609ba
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 67 deletions.
73 changes: 6 additions & 67 deletions .github/workflows/01-main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,10 @@ on:
pull_request:

jobs:
linux-gcc10:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
codename:
- bullseye
perl-version:
- '5.30'
- '5.32'
- '5.34'
- '5.36'
- '5.38'
- '5.40'
container:
image: perl:${{ matrix.perl-version }}-${{ matrix.codename }}
image: perl:latest
steps:
- uses: actions/checkout@v4
- name: perl -V
Expand All @@ -41,54 +29,7 @@ jobs:
env:
AUTHOR_MODE: 1
- name: Run tests
run: prove -b t
env:
AUTHOR_MODE: 1

linux-gcc8:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
codename:
- buster
perl-version:
- '5.8'
- '5.10'
- '5.12'
- '5.14'
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- '5.36'
- '5.38'
- '5.40'
container:
image: perl:${{ matrix.perl-version }}-${{ matrix.codename }}
steps:
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
- name: gcc -v
run: gcc -v
- name: Install dependencies
run: |
cpanm -n --installdeps .
- name: Run build
run: |
perl Makefile.PL
make -j4
env:
AUTHOR_MODE: 1
- name: Run tests
run: prove -b t
run: prove -j4 -b t
env:
AUTHOR_MODE: 1

Expand All @@ -109,7 +50,7 @@ jobs:
env:
AUTHOR_MODE: 0
- name: Run tests
run: prove -b t
run: prove -j4 -b t
env:
AUTHOR_MODE: 0

Expand Down Expand Up @@ -137,7 +78,7 @@ jobs:
env:
AUTHOR_MODE: 0
- name: Run tests
run: prove -b t
run: prove -j4 -b t
env:
AUTHOR_MODE: 0

Expand Down Expand Up @@ -169,7 +110,5 @@ jobs:
run: cd $GITHUB_WORKSPACE; make -j4
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: make test
run: cd $GITHUB_WORKSPACE; prove -b t
run: cd $GITHUB_WORKSPACE; prove -j4 -b t
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
env:
AUTHOR_MODE: 0
93 changes: 93 additions & 0 deletions .github/workflows/02-linux-x64-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: 02-linux-x64

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
linux-gcc10:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
codename:
- bullseye
perl-version:
- '5.30'
- '5.32'
- '5.34'
- '5.36'
- '5.38'
- '5.40'
container:
image: perl:${{ matrix.perl-version }}-${{ matrix.codename }}
steps:
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
- name: gcc -v
run: gcc -v
- name: Install dependencies
run: |
cpanm -n --installdeps .
- name: Run build
run: |
perl Makefile.PL
make -j4
env:
AUTHOR_MODE: 1
- name: Run tests
run: prove -b t
env:
AUTHOR_MODE: 1

linux-gcc8:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
codename:
- buster
perl-version:
- '5.8'
- '5.10'
- '5.12'
- '5.14'
- '5.16'
- '5.18'
- '5.20'
- '5.22'
- '5.24'
- '5.26'
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- '5.36'
- '5.38'
- '5.40'
container:
image: perl:${{ matrix.perl-version }}-${{ matrix.codename }}
steps:
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
- name: gcc -v
run: gcc -v
- name: Install dependencies
run: |
cpanm -n --installdeps .
- name: Run build
run: |
perl Makefile.PL
make -j4
env:
AUTHOR_MODE: 1
- name: Run tests
run: prove -b t
env:
AUTHOR_MODE: 1

0 comments on commit 85609ba

Please sign in to comment.