-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add CI plus trappings of CPAN distro
- Loading branch information
Showing
4 changed files
with
150 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: perl | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
create: | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
steps: | ||
- uses: PDLPorters/devops/github-actions/irc-notifications@master | ||
with: | ||
target-notifications: true | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
perl-version: ['5.16', '5.20'] | ||
include: | ||
- perl-version: '5.30' | ||
os: ubuntu-latest | ||
release-test: true | ||
coverage: true | ||
- perl-version: '5.30' | ||
os: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'ci-dist: target-setup-perl' | ||
uses: PDLPorters/devops/github-actions/ci-dist@master | ||
with: | ||
target-setup-perl: true | ||
perl-version: ${{ matrix.perl-version }} | ||
- name: Install PDL dependencies | ||
uses: PDLPorters/devops/github-actions/install-dep-pdl-dep@master | ||
- name: 'ci-dist: target-all' | ||
uses: PDLPorters/devops/github-actions/ci-dist@master | ||
with: | ||
target-setup-perl: false | ||
target-install-dist-perl-deps: true | ||
dist-perl-deps-configure: PDL | ||
target-test-release-testing: true | ||
target-test: true | ||
test-enable-release-testing: ${{ matrix.release-test }} | ||
test-enable-coverage: ${{ matrix.coverage }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-status: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
needs: [ 'ci' ] | ||
steps: | ||
- uses: PDLPorters/devops/github-actions/irc-notifications@master | ||
with: | ||
target-build-status: true | ||
needs: ${{ toJSON(needs) }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: issue-notify | ||
|
||
on: | ||
issues: | ||
types: [opened,assigned,closed,reopened] | ||
issue_comment: | ||
types: [created] | ||
pull_request: | ||
types: [closed,assigned,converted_to_draft,ready_for_review,review_requested] | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
if: ${{ always() }} | ||
steps: | ||
- uses: PDLPorters/devops/github-actions/irc-notifications@master | ||
with: | ||
target-notifications: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
Complex.c | ||
Complex.pm | ||
Complex.xs | ||
|
||
*.o | ||
*.obj | ||
*.so | ||
*.dylib | ||
*.bundle | ||
|
||
_eumm | ||
pm_to_blib | ||
blib | ||
*.bs | ||
Makefile | ||
Makefile.aperl | ||
MYMETA.yml | ||
MYMETA.json | ||
MANIFEST.bak | ||
|
||
# Editor temp files | ||
*~ | ||
# VIM | ||
.*.swp | ||
|
||
# Strange mac files | ||
._* | ||
|
||
# Devel::Cover files | ||
*.gcda | ||
*.gcno | ||
*.gcov | ||
cover_db/ | ||
|
||
nytprof* | ||
|
||
# Directory specific build files | ||
# These can either be in the specific directories or specified | ||
# with full patch in the top level directory (as here). | ||
|
||
pp-*.c |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
use strict; | ||
use warnings; | ||
use ExtUtils::MakeMaker; | ||
use PDL::Core::Dev; | ||
|
||
my @pack = (["complex.pd", qw(Complex PDL::Complex)]); | ||
my @pack = (["complex.pd", qw(Complex PDL::Complex), '', 1]); | ||
|
||
my %hash = pdlpp_stdargs_int(@pack); | ||
my %hash = pdlpp_stdargs(@pack); | ||
$hash{LIBS} = ['-lm']; | ||
$hash{CONFIGURE_REQUIRES}{'ExtUtils::MakeMaker'} = '7.14'; | ||
$hash{CONFIGURE_REQUIRES}{'PDL::Core::Dev'} = 0; | ||
$hash{PREREQ_PM}{'PDL'} = '2.095'; | ||
|
||
undef &MY::postamble; # suppress warning | ||
*MY::postamble = sub{ pdlpp_postamble_int(@pack); }; | ||
sub MY::postamble { pdlpp_postamble(@pack); } | ||
|
||
WriteMakefile(%hash); | ||
WriteMakefile( | ||
AUTHOR => 'Marc Lehmann <[email protected]>', | ||
LICENSE => 'perl', | ||
MIN_PERL_VERSION => '5.016', | ||
META_MERGE => { | ||
"meta-spec" => { version => 2 }, | ||
resources => { | ||
homepage => 'http://pdl.perl.org/', | ||
bugtracker => {web=>'https://github.com/PDLPorters/PDL-Complex/issues'}, | ||
repository => { | ||
url => 'git://github.com/PDLPorters/PDL-Complex.git', | ||
type => 'git', | ||
web => 'https://github.com/PDLPorters/PDL-Complex', | ||
}, | ||
x_IRC => 'irc://irc.perl.org/#pdl', | ||
}, | ||
}, | ||
%hash, | ||
); |