Mac OS 12 is deprecated on Github; bump cross-platform-actions to latest #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: OpenBSD | |
jobs: | |
build: | |
runs-on: 'macos-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- 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@v4 | |
with: | |
name: dist-for-openbsd-install | |
path: '*.tar.gz' | |
retention-days: 1 | |
install-openbsd: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/[email protected] | |
with: | |
name: dist-for-openbsd-install | |
- name: Install on OpenBSD | |
uses: cross-platform-actions/[email protected] | |
with: | |
operating_system: openbsd | |
version: 7.4 | |
shell: bash | |
run: | | |
mkdir dist-for-test && | |
tar -C dist-for-test -xzf *.tar.gz && | |
cd dist-for-test/* && | |
cpan App::cpanminus && | |
/home/runner/perl5/bin/cpanm --quiet --notest --installdeps . && | |
/home/runner/perl5/bin/cpanm -v . | |