diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 987620f..5848471 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,7 +17,6 @@ jobs: fail-fast: false matrix: cip_tag: - - static - "5.41" - "5.40" - "5.38" diff --git a/.github/workflows/msys2-mingw.yml b/.github/workflows/msys2-mingw.yml deleted file mode 100644 index 2743442..0000000 --- a/.github/workflows/msys2-mingw.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: msys2-mingw - -on: - push: - branches: - - '*' - tags-ignore: - - '*' - pull_request: - -env: - PERL5LIB: /c/cx/lib/perl5:/c/cx/lib/perl5/MSWin32-x64-multi-thread - PERL_LOCAL_LIB_ROOT: c:/cx - PERL_MB_OPT: --install_base C:/cx - PERL_MM_OPT: INSTALL_BASE=C:/cx - ALIEN_BUILD_PLUGIN_PKGCONFIG_COMMANDLINE_TEST: 1 # Test Alien::Build::Plugin::PkgConfig::CommandLine - -jobs: - perl: - - runs-on: windows-latest - - strategy: - fail-fast: false - - defaults: - run: - shell: msys2 {0} - - steps: - - name: Set git to use LF - run: | - git config --global core.autocrlf false - git config --global core.eol lf - shell: powershell - - - uses: actions/checkout@v2 - - - name: Set up Perl - uses: msys2/setup-msys2@v2 - with: - update: true - install: >- - base-devel - mingw-w64-x86_64-toolchain - mingw-w64-x86_64-perl - mingw-w64-x86_64-libffi - mingw-w64-x86_64-libarchive - - - name: perl -V - run: | - perl -V - - - name: Prepare for cache - run: | - perl -V > perlversion.txt - ls perlversion.txt - - - name: Cache CPAN modules - uses: actions/cache@v1 - with: - path: c:\cx - key: ${{ runner.os }}-build-msys2-${{ hashFiles('perlversion.txt') }} - restore-keys: | - ${{ runner.os }}-build-msys2-${{ hashFiles('perlversion.txt') }} - - - name: Install Static Dependencies - run: | - export PATH="/c/cx/bin:$PATH" - yes | cpan App::cpanminus || true - cpanm -n Dist::Zilla - perl -S dzil authordeps --missing | perl -S cpanm -n - perl -S dzil listdeps --missing | perl -S cpanm -n - - - name: Install Dynamic Dependencies - run: | - export PATH="/c/cx/bin:$PATH" - perl -S dzil run --no-build 'perl -S cpanm --installdeps .' - - - name: Run Tests - run: | - export PATH="/c/cx/bin:$PATH" - perl -S dzil test -v diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..cba7de1 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,28 @@ +name: static + +on: + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + +jobs: + perl: + + runs-on: ubuntu-latest + + env: + CIP_TAG: static + + steps: + - uses: actions/checkout@v2 + + - name: Bootstrap CIP + run: | + curl -L https://raw.githubusercontent.com/uperl/cip/main/bin/github-bootstrap | bash + + - name: Build + Test + run: | + cip script diff --git a/README.md b/README.md index 5f74840..f41cce9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# FFI::Platypus::Declare ![linux](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/linux/badge.svg) ![macos](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/macos/badge.svg) ![windows](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/windows/badge.svg) ![msys2-mingw](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/msys2-mingw/badge.svg) +# FFI::Platypus::Declare ![static](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/static/badge.svg) ![linux](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/linux/badge.svg) ![macos](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/macos/badge.svg) ![windows](https://github.com/PerlFFI/FFI-Platypus-Declare/workflows/windows/badge.svg) (discouraged) Declarative interface to FFI::Platypus diff --git a/dist.ini b/dist.ini index 701c8ac..c367d1e 100644 --- a/dist.ini +++ b/dist.ini @@ -14,10 +14,10 @@ default_branch = main test2_v0 = 0 irc = irc://irc.perl.org/#native +workflow = static workflow = linux workflow = macos workflow = windows -workflow = msys2-mingw [FFI::Build]