Skip to content

Commit

Permalink
add cygwin CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 10, 2021
1 parent 4aa2662 commit 0a65662
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,70 @@ jobs:
env:
HARNESS_OPTIONS: j4
run: perl Makefile.PL && make test

cygwin:
env:
PERL5LIB: /cygdrive/c/cx/lib/perl5:/cygdrive/c/cx/lib/perl5/MSWin32-x64-multi-thread
PERL_LOCAL_LIB_ROOT: /cygdrive/cx
PERL_MB_OPT: --install_base /cygdrive/c/cx
PERL_MM_OPT: INSTALL_BASE=/cygdrive/c/cx
CYGWIN_NOWINPATH: 1
runs-on: windows-latest
strategy:
fail-fast: false
defaults:
run:
shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
shell: powershell
- uses: actions/checkout@v2
- name: Set up Cygwin
uses: egor-tensin/setup-cygwin@v3
with:
platform: x64
packages: make perl gcc-core gcc-g++ pkg-config libcrypt-devel libssl-devel git
- name: perl -V
run: |
perl -V
gcc --version
- name: Prepare for cache
run: |
perl -V > perlversion.txt
gcc --version >> perlversion.txt
ls perlversion.txt
- name: Cache CPAN modules
uses: actions/cache@v1
with:
path: c:\cx
key: ${{ runner.os }}-build-cygwin-${{ hashFiles('perlversion.txt') }}
restore-keys: |
${{ runner.os }}-build-cygwin-${{ hashFiles('perlversion.txt') }}
- name: Install Static Dependencies
run: |
export PATH="/cygdrive/c/cx/bin:$PATH"
cd $( cygpath -u $GITHUB_WORKSPACE )
yes | cpan App::cpanminus || true
- name: Install Dynamic Dependencies
run: |
export PATH="/cygdrive/c/cx/bin:$PATH"
cd $( cygpath -u $GITHUB_WORKSPACE )
cpanm -n Devel::CheckLib && cpanm -n --installdeps .
- name: Run tests (no coverage)
env:
HARNESS_OPTIONS: j4
run: |
export PATH="/cygdrive/c/cx/bin:$PATH"
cd $( cygpath -u $GITHUB_WORKSPACE )
perl Makefile.PL && make test
- run: |
export PATH="/cygdrive/c/cx/bin:$PATH"
cd $( cygpath -u $GITHUB_WORKSPACE )
perl -Mblib -MPDL::Config -MData::Dumper -e '$Data::Dumper::Sortkeys = 1; print Dumper \%PDL::Config'
- name: CPAN log
if: ${{ failure() }}
run: |
cat ~/.cpanm/latest-build/build.log

0 comments on commit 0a65662

Please sign in to comment.