From a04b72b91c1ebb3f22304dbba25aee923ba3d28d Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Sat, 13 Mar 2021 05:00:35 -0700 Subject: [PATCH] mass migrations --- .github/workflows/linux.yml | 74 +++++++++++++++++++++++++++++++++++++ .travis.yml | 40 -------------------- README.md | 2 +- dist.ini | 2 +- t/00_diag.t | 2 +- 5 files changed, 77 insertions(+), 43 deletions(-) create mode 100644 .github/workflows/linux.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..117c4fa --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,74 @@ +name: linux + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + + runs-on: ubuntu-latest + + strategy: + matrix: + cip_tag: + - static + - "5.33" + - "5.32" + - "5.30" + - "5.28" + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + - "5.8" + + env: + CIP_TAG: ${{ matrix.cip_tag }} + CIP_ENV: TMPDIR=/home/cip/tmp + + steps: + - uses: actions/checkout@v2 + + - name: Bootstrap CIP + run: | + curl https://raw.githubusercontent.com/plicease/cip/main/bin/github-bootstrap | bash + + - name: Cache-Key + id: cache-key + run: | + echo -n '::set-output name=key::' + cip cache-key + + - name: Cache CPAN modules + uses: actions/cache@v2 + with: + path: ~/.cip + key: ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }} + restore-keys: | + ${{ runner.os }}-build-${{ steps.cache-key.outputs.key }} + + - name: Start-Container + run: | + cip start + + - name: Diagnostics + run: | + cip diag + + - name: Install-Dependencies + run: | + cip install + + - name: Build + Test + run: | + cip script diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b42cc0c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: minimal -dist: xenial -services: - - docker - -before_install: - - curl https://raw.githubusercontent.com/plicease/cip/main/bin/travis-bootstrap | bash - - cip before-install - -install: - - cip diag - - cip install - -script: - - cip script - -jobs: - include: - - env: CIP_TAG=static - - env: CIP_TAG=5.31 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.30 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.28 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.26 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.24 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.22 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.20 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.18 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.16 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.14 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.12 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.10 CIP_ENV=TMPDIR=/home/cip/tmp - - env: CIP_TAG=5.8 CIP_ENV=TMPDIR=/home/cip/tmp - -branches: - only: - - main - -cache: - directories: - - "$HOME/.cip" diff --git a/README.md b/README.md index 9a7bd19..2dd38c5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# FFI::Platypus::Lang::Go [![Build Status](https://travis-ci.org/PerlFFI/FFI-Platypus-Lang-Go.svg)](http://travis-ci.org/PerlFFI/FFI-Platypus-Lang-Go) +# FFI::Platypus::Lang::Go ![linux](https://github.com/PerlFFI/FFI-Platypus-Lang-Go/workflows/linux/badge.svg) Documentation and tools for using Platypus with Go diff --git a/dist.ini b/dist.ini index 3cb6862..9fdb9f1 100644 --- a/dist.ini +++ b/dist.ini @@ -7,12 +7,12 @@ version = 0.01 [@Author::Plicease] :version = 2.47 -travis_status = 1 release_tests = 1 installer = Author::Plicease::MakeMaker test2_v0 = 1 github_user = PerlFFI irc = irc://irc.perl.org/#native +workflow = linux diag_preamble = | $post_diag = sub { diag_preamble = | use Capture::Tiny qw( capture_merged ); diff --git a/t/00_diag.t b/t/00_diag.t index 3f7a97e..06727f6 100644 --- a/t/00_diag.t +++ b/t/00_diag.t @@ -73,7 +73,7 @@ if(@keys > 0) spacer; } -diag sprintf $format, 'perl ', $]; +diag sprintf $format, 'perl', "$] $^O $Config{archname}"; foreach my $module (sort @modules) {