diff --git a/.gitattributes b/.gitattributes index 86ac29d..12f41d0 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,4 @@ *.pm linguist-language=Perl *.t linguist-language=Perl *.h linguist-language=C +alienfile linguist-language=Perl diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f4c2f6f..e1bee2f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -17,9 +17,17 @@ jobs: fail-fast: false matrix: cip: - - tag: "5.37" + - tag: "5.41" install_type: system - - tag: "5.37" + - tag: "5.41" + install_type: share + - tag: "5.40" + install_type: system + - tag: "5.40" + install_type: share + - tag: "5.38" + install_type: system + - tag: "5.38" install_type: share - tag: "5.36" install_type: system diff --git a/.github/workflows/msys2-mingw.yml b/.github/workflows/msys2-mingw.yml deleted file mode 100644 index b149b38..0000000 --- a/.github/workflows/msys2-mingw.yml +++ /dev/null @@ -1,93 +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 - matrix: - alien: - - install_type: share - - install_type: system - packages: mingw-w64-x86_64-libffi - - env: - ALIEN_INSTALL_TYPE: ${{ matrix.alien.install_type }} - - 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 - ${{ matrix.alien.packages }} - 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-${{ matrix.alien.install_type }}-${{ hashFiles('perlversion.txt') }} - restore-keys: | - ${{ runner.os }}-build-msys2-${{ matrix.alien.install_type }}-${{ hashFiles('perlversion.txt') }} - - - name: Install Static Dependencies - run: | - export PATH="/c/cx/bin:$PATH" - yes | cpan App::cpanminus || true - cpanm -n Dist::Zilla - cpanm -n Alien::Build::Plugin::Download::GitHub - perl -S dzil authordeps --missing | env ALIEN_INSTALL_TYPE=default perl -S cpanm -n - perl -S dzil listdeps --missing | env ALIEN_INSTALL_TYPE=default 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/.gitignore b/.gitignore index d07336b..4905b02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /Alien-FFI-* /.build +*.old +*.orig diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..578c5ee --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "pls.perlcritic.perlcriticrc": "perlcriticrc", + "pls.inc": [ + "$ROOT_PATH/lib" + ] +} diff --git a/README.md b/README.md index a51cfa2..611c812 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Alien::FFI ![static](https://github.com/PerlFFI/Alien-FFI/workflows/static/badge.svg) ![linux](https://github.com/PerlFFI/Alien-FFI/workflows/linux/badge.svg) ![windows](https://github.com/PerlFFI/Alien-FFI/workflows/windows/badge.svg) ![macos](https://github.com/PerlFFI/Alien-FFI/workflows/macos/badge.svg) ![msys2-mingw](https://github.com/PerlFFI/Alien-FFI/workflows/msys2-mingw/badge.svg) +# Alien::FFI ![static](https://github.com/PerlFFI/Alien-FFI/workflows/static/badge.svg) ![linux](https://github.com/PerlFFI/Alien-FFI/workflows/linux/badge.svg) ![windows](https://github.com/PerlFFI/Alien-FFI/workflows/windows/badge.svg) ![macos](https://github.com/PerlFFI/Alien-FFI/workflows/macos/badge.svg) Build and make available libffi @@ -65,7 +65,7 @@ Petr Písař (ppisar) # COPYRIGHT AND LICENSE -This software is copyright (c) 2014-2022 by Graham Ollis. +This software is copyright (c) 2014-2024 by Graham Ollis. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. diff --git a/dist.ini b/dist.ini index 9de5b84..5c52dd3 100644 --- a/dist.ini +++ b/dist.ini @@ -2,7 +2,7 @@ name = Alien-FFI author = Graham Ollis license = Perl_5 copyright_holder = Graham Ollis -copyright_year = 2014-2022 +copyright_year = 2014-2024 version = 0.27 [AlienBase::Doc] @@ -10,7 +10,7 @@ version = 0.27 name = libffi [@Author::Plicease] -:version = 2.69 +:version = 2.79 release_tests = 1 irc = irc://irc.perl.org/#native test2_v0 = 1 @@ -21,7 +21,6 @@ workflow = static workflow = linux workflow = windows workflow = macos -workflow = msys2-mingw diag_preamble = | $post_diag = sub { diag_preamble = | require Alien::FFI;