Skip to content

Commit

Permalink
Merge pull request #2 from Perl-GPU/gha-shared-actions
Browse files Browse the repository at this point in the history
Use shared GitHub Actions
  • Loading branch information
zmughal authored Feb 7, 2022
2 parents 5d46f18 + f803f56 commit c0b069a
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: perl
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
create:
jobs:
notify:
runs-on: ubuntu-latest
continue-on-error: true
if: ${{ always() }}
steps:
- uses: Perl-GPU/devops/github-actions/irc-notifications@main
with:
target-notifications: true
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', '5.14', '5.20']
include:
- perl-version: '5.30'
os: ubuntu-latest
release-test: true
coverage: true
# Disabling Windows until Alien::GLFW implements share install.
#- perl-version: '5.30'
# os: windows-latest
- perl-version: '5.30'
os: macos-11
steps:
- uses: actions/checkout@v2
- name: 'ci-dist: target-setup-perl'
uses: Perl-GPU/devops/github-actions/ci-dist@main
with:
target-setup-perl: true
perl-version: ${{ matrix.perl-version }}
- name: Install dependencies
uses: Perl-GPU/devops/github-actions/install-dep-opengl-glfw-dep@main
- name: 'ci-dist: target-all'
uses: Perl-GPU/devops/github-actions/ci-dist@main
with:
target-setup-perl: false
target-install-dist-perl-deps: true
build-enable-graphical-display: true
target-test-release-testing: true
target-test: true
test-enable-graphical-display: 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: Perl-GPU/devops/github-actions/irc-notifications@main
with:
target-build-status: true
needs: ${{ toJSON(needs) }}
21 changes: 21 additions & 0 deletions .github/workflows/issue-notify.yml
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: Perl-GPU/devops/github-actions/irc-notifications@main
with:
target-notifications: true
3 changes: 3 additions & 0 deletions test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# after the test suite so you see something if the build worked.
#========================================================================

# skip test under under headless macOS
exit if exists $ENV{CI} and $^O eq 'darwin';

#========================================================================
# Simple GLFW example
# Copyright (c) Camilla Berglund <[email protected]>
Expand Down

0 comments on commit c0b069a

Please sign in to comment.