Skip to content

Commit

Permalink
Switch from Cirrus to Github Actions for FreeBSD testing
Browse files Browse the repository at this point in the history
  • Loading branch information
DrHyde committed Feb 14, 2023
1 parent d55e047 commit 87c3e5c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
task:
name: FreeBSD
freebsd_instance:
image_family: freebsd-13-0-snap
test_script:
- pkg install -y perl5
- echo|cpan App::cpanminus
- cpanm --installdeps .
- perl Makefile.PL
- make
- make test

task:
name: MacOS
macos_instance:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/install-freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on: [push, pull_request]
name: FreeBSD install

jobs:
build:
runs-on: 'macos-10.15'
steps:
- uses: actions/checkout@v3
- 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-freebsd-install
path: '*.tar.gz'
retention-days: 1
install-freebsd:
runs-on: macos-10.15
needs: build
steps:
- uses: actions/download-artifact@v2
with:
name: dist-for-freebsd-install
- name: Install on FreeBSD
uses: cross-platform-actions/action@v0.10.0
with:
operating_system: freebsd
version: 13.1
shell: bash
run: |
mkdir dist-for-test &&
tar -C dist-for-test -xzf *.tar.gz &&
cd dist-for-test/* &&
sudo pkg install -y perl5 &&
cpan App::cpanminus &&
/home/runner/perl5/bin/cpanm --installdeps . &&
/home/runner/perl5/bin/cpanm -v .

0 comments on commit 87c3e5c

Please sign in to comment.