Skip to content

Commit

Permalink
Use shared GitHub Actions
Browse files Browse the repository at this point in the history
Uses the shared actions introduced by <PDLPorters/devops#8>.
  • Loading branch information
zmughal committed Sep 22, 2021
1 parent 24038b5 commit bc9fcb1
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 25 deletions.
67 changes: 42 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,65 @@ on:
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: false # TODO
ci:
runs-on: ${{ matrix.os }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
needs: notify
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
perl-version: ['5.10']
perl-version: ['5.10', '5.14', '5.20']
include:
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
- perl-version: '5.30'
os: macos-latest
coverage: true
- perl-version: '5.30'
os: windows-latest
- perl-version: '5.30'
os: macos-latest
steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-perl@v1
- name: 'ci-dist: target-setup-perl'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
distribution: strawberry # ignored non-windows
target-setup-perl: true
perl-version: ${{ matrix.perl-version }}
- run: perl -V

- name: Ubuntu packages
- name: Install PDL dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -y update && sudo apt-get install build-essential gfortran
- name: MacOS packages
if: matrix.os == 'macos-latest'
run: brew reinstall gcc

- name: Run release tests # before others as may install useful stuff
if: ${{ matrix.release-test }}
env:
RELEASE_TESTING: 1
uses: PDLPorters/devops/github-actions/install-dep-pdl-dep@master
- name: Install Perl configure deps
run: |
cpanm -n --installdeps --with-develop .
prove -lr xt
cpanm PDL::Core::Dev
- name: 'ci-dist: target-all'
uses: PDLPorters/devops/github-actions/ci-dist@master
with:
target-setup-perl: false
target-install-dist-perl-deps: true
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 }}

- run: cpanm -n ExtUtils::MakeMaker && cpanm -n --installdeps .
- name: Run tests (no coverage)
if: '!matrix.coverage'
env:
HARNESS_OPTIONS: j4
run: perl Makefile.PL && make test
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: false # TODO
needs: ${{ toJSON(needs) }}
17 changes: 17 additions & 0 deletions .github/workflows/issue-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: issue-notify

on:
issues:
types: [opened]
issue_comment:
types: [created]

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

0 comments on commit bc9fcb1

Please sign in to comment.