Skip to content

Commit

Permalink
much cleaner way of doing this
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Oct 3, 2021
1 parent 4de647c commit 2086ba0
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/install-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,20 @@ jobs:
runs-on: macos-10.15
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: dist-for-installation-test
- name: Install on OpenBSD
uses: cross-platform-actions/action@v0.2.0
env:
GITHUB_RUN_ID: github.run_id
with:
operating_system: openbsd
version: 6.9
environment_variables: GITHUB_RUN_ID
shell: bash
run: |
sudo pkg_add go git gmake &&
git clone https://github.com/cli/cli.git gh-cli &&
(cd gh-cli && sudo gmake install) &&
sudo pkg_delete gmake &&
mkdir dist-for-test &&
tar -C dist-for-test -xzf *.tar.gz &&
cd dist-for-test/* &&
cpan App::cpanminus &&
echo '${{ secrets.GITHUB_TOKEN }}'|gh auth login --with-token &&
gh run download -n dist-for-installation-test &&
/home/runner/perl5/bin/cpanm --notest --installdeps *.tar.gz &&
/home/runner/perl5/bin/cpanm -v *.tar.gz
/home/runner/perl5/bin/cpanm --quiet --notest --installdeps . &&
/home/runner/perl5/bin/cpanm -v .

0 comments on commit 2086ba0

Please sign in to comment.