From c0f06ab22fa5f851869914b87fdfc553a2d8916f Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Sun, 17 Jul 2022 14:15:15 +0100 Subject: [PATCH] split installation tests into two workflows --- .github/workflows/install-linux.yml | 33 +++++++++++++++++++ .../{install-dist.yml => install-openbsd.yml} | 18 ++-------- 2 files changed, 36 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/install-linux.yml rename .github/workflows/{install-dist.yml => install-openbsd.yml} (72%) diff --git a/.github/workflows/install-linux.yml b/.github/workflows/install-linux.yml new file mode 100644 index 0000000..5c5071e --- /dev/null +++ b/.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 diff --git a/.github/workflows/install-dist.yml b/.github/workflows/install-openbsd.yml similarity index 72% rename from .github/workflows/install-dist.yml rename to .github/workflows/install-openbsd.yml index 9e68006..14c7969 100644 --- a/.github/workflows/install-dist.yml +++ b/.github/workflows/install-openbsd.yml @@ -1,5 +1,5 @@ on: [push, pull_request] -name: Dist installation +name: OpenBSD install jobs: build: @@ -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: