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 85609ba commit 091b50f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 32 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/01-main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,34 +81,3 @@ jobs:
run: prove -j4 -b t
env:
AUTHOR_MODE: 0

cygwin:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@v4
with:
packages: perl_base perl-ExtUtils-MakeMaker perl-JSON make gcc-g++ bash libcrypt-devel libnsl-devel
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: Install cpanminus
run: cpan App::cpanminus
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: Install Dependencies
run: cd $GITHUB_WORKSPACE; cpanm --verbose --notest --installdeps .
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: perl Makefile.PL
run: cd $GITHUB_WORKSPACE; perl Makefile.PL
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: make
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 -j4 -b t
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 02-linux-i386
name: 03-linux-i386

on:
push:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/04-cygwin-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: 04-cygwin

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

jobs:
cygwin:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@v4
with:
packages: perl_base perl-ExtUtils-MakeMaker perl-JSON make gcc-g++ bash libcrypt-devel libnsl-devel
- uses: actions/checkout@v4
- name: perl -V
run: perl -V
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: Install cpanminus
run: cpan App::cpanminus
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: Install Dependencies
run: cd $GITHUB_WORKSPACE; cpanm --verbose --notest --installdeps .
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: perl Makefile.PL
run: cd $GITHUB_WORKSPACE; perl Makefile.PL
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
- name: make
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 -j4 -b t
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'

0 comments on commit 091b50f

Please sign in to comment.