Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit abe1aa7

Browse files
authored
Merge pull request #2 from Perl-GPU/gha-shared-actions
Use shared GitHub Actions
2 parents e9be2a8 + b0967aa commit abe1aa7

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

.github/workflows/ci.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: perl
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
tags-ignore:
7+
- '*'
8+
pull_request:
9+
create:
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
continue-on-error: true
14+
if: ${{ always() }}
15+
steps:
16+
- uses: Perl-GPU/devops/github-actions/irc-notifications@main
17+
with:
18+
target-notifications: true
19+
ci:
20+
runs-on: ${{ matrix.os }}
21+
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
22+
needs: notify
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ubuntu-latest]
27+
perl-version: ['5.10', '5.14', '5.20']
28+
include:
29+
- perl-version: '5.30'
30+
os: ubuntu-latest
31+
release-test: true
32+
coverage: true
33+
- perl-version: '5.30'
34+
os: windows-latest
35+
- perl-version: '5.30'
36+
os: macos-11
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: 'ci-dist: target-setup-perl'
40+
uses: Perl-GPU/devops/github-actions/ci-dist@main
41+
with:
42+
target-setup-perl: true
43+
perl-version: ${{ matrix.perl-version }}
44+
- name: Install dependencies
45+
uses: Perl-GPU/devops/github-actions/install-dep-opengl-glu-dep@main
46+
- name: 'ci-dist: target-all'
47+
uses: Perl-GPU/devops/github-actions/ci-dist@main
48+
with:
49+
target-setup-perl: false
50+
target-install-dist-perl-deps: true
51+
dist-perl-deps-configure: Devel::CheckOS
52+
build-enable-graphical-display: true
53+
target-test-release-testing: true
54+
target-test: true
55+
test-enable-graphical-display: true
56+
test-enable-release-testing: ${{ matrix.release-test }}
57+
test-enable-coverage: ${{ matrix.coverage }}
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
59+
60+
build-status:
61+
runs-on: ubuntu-latest
62+
continue-on-error: true
63+
if: ${{ always() }}
64+
needs: [ 'ci' ]
65+
steps:
66+
- uses: Perl-GPU/devops/github-actions/irc-notifications@main
67+
with:
68+
target-build-status: true
69+
needs: ${{ toJSON(needs) }}

.github/workflows/issue-notify.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: issue-notify
2+
3+
on:
4+
issues:
5+
types: [opened,assigned,closed,reopened]
6+
issue_comment:
7+
types: [created]
8+
pull_request:
9+
types: [closed,assigned,converted_to_draft,ready_for_review,review_requested]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
notify:
15+
runs-on: ubuntu-latest
16+
continue-on-error: true
17+
if: ${{ always() }}
18+
steps:
19+
- uses: Perl-GPU/devops/github-actions/irc-notifications@main
20+
with:
21+
target-notifications: true

0 commit comments

Comments
 (0)