Merge pull request #133 from gflohr/typo #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIXME! How can we avoid DRY here? The only difference is that we want to | |
# include more Perl versions. | |
name: CI for Pushes | |
on: | |
push: | |
branches: [ '*' ] | |
jobs: | |
on-push: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
perl-version: | |
- '5.38' | |
steps: | |
- name: 'Check out repository' | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: 'Perl version' | |
run: perl -V | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
distribution: strawberry | |
- name: 'Install Linux::Inotify2' | |
if: matrix.os == 'ubuntu-latest' | |
run: cpanm --notest Linux::Inotify2 | |
- name: 'Install Mac::FSEvents' | |
if: matrix.os == 'macos-latest' | |
run: cpanm --notest Mac::FSEvents | |
- name: 'Install Filesys::Notify::Win32::ReadDirectoryChanges' | |
if: matrix.os == 'windows-latest' | |
run: cpanm --notest 'Filesys::Notify::Win32::ReadDirectoryChanges' | |
- name: 'Install IO::KQueue' | |
if: matrix.os == 'macos-latest' | |
run: cpanm --notest IO::KQueue | |
- name: 'Install BSD::Resource' | |
if: matrix.os == 'macos-latest' | |
run: cpanm --notest BSD::Resource | |
- name: 'AnyEvent::Filesys::Watcher' | |
run: | | |
git clone https://github.com/gflohr/AnyEvent-Filesys-Watcher && | |
cd AnyEvent-Filesys-Watcher && | |
cpanm --notest --verbose . && | |
cd .. && | |
perl -MFile::Path -e "exit not File::Path::rmtree('AnyEvent-Filesys-Watcher')" | |
- name: 'Install JavaScript::Duktape::XS' | |
run: | | |
git clone https://github.com/gonzus/JavaScript-Duktape-XS && | |
cd JavaScript-Duktape-XS && | |
cpanm --notest --verbose . && | |
cd .. && | |
perl -MFile::Path -e "exit not File::Path::rmtree('JavaScript-Duktape-XS')" | |
- name: 'Install other dependencies' | |
run: cpanm --notest --installdeps --verbose . | |
- name: 'Prepare build' | |
run: perl Makefile.PL | |
- name: 'Build' | |
run: make | |
- name: 'Test' | |
run: prove -lmbv | |