Skip to content

Commit

Permalink
split installation tests into two workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Jul 17, 2022
1 parent a21527e commit 5580a9d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/install-linux.yml
@@ -0,0 +1,33 @@
on: [push, pull_request]
name: Linux install

jobs:
build:
runs-on: 'macos-10.15'
steps:
- uses: actions/checkout@v2
- name: Setup Perl environment
uses: shogo82148/actions-setup-perl@v1
- name: Test and build
run: |
cpanm --installdeps .
perl Makefile.PL
make test
make dist
- uses: actions/upload-artifact@v2
with:
name: dist-for-linux-install
path: '*.tar.gz'
retention-days: 1
install-linux:
runs-on: 'ubuntu-latest'
needs: build
container:
image: perl:5.34
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-linux-install
- name: Install on Linux
run: |
cpanm *.tar.gz
@@ -1,5 +1,5 @@
on: [push, pull_request]
name: Dist installation
name: OpenBSD install

jobs:
build:
Expand All @@ -16,28 +16,16 @@ jobs:
make dist
- uses: actions/upload-artifact@v2
with:
name: dist-for-installation-test
name: dist-for-openbsd-install
path: '*.tar.gz'
retention-days: 1
install-linux:
runs-on: 'ubuntu-latest'
needs: build
container:
image: perl:5.34
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-installation-test
- name: Install on Linux
run: |
cpanm *.tar.gz
install-openbsd:
runs-on: macos-10.15
needs: build
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-installation-test
name: dist-for-openbsd-install
- name: Install on OpenBSD
uses: cross-platform-actions/action@v0.3.1
with:
Expand Down

0 comments on commit 5580a9d

Please sign in to comment.