Skip to content

Perl v5.40 is released #344

Perl v5.40 is released

Perl v5.40 is released #344

Workflow file for this run

name: Perl Bindings on Linux
on:
pull_request:
paths:
- ".github/workflows/test-linux-perl.yml"
- "mecab/**"
push:
branches:
- main
paths:
- ".github/workflows/test-linux-perl.yml"
- "mecab/**"
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
perl:
- "5.40"
- "5.38"
- "5.36"
- "5.34"
- "5.32"
- "5.30"
- "5.28"
- "5.26"
- "5.24"
- "5.22"
- "5.20"
steps:
- run: sudo apt-get install gettext
- uses: actions/checkout@v4
- name: restore cache
id: cache
uses: actions/cache@v4
with:
path: |
~/local
key: v1-mecab-${{ runner.os }}-${{ hashFiles('mecab/src/*.cpp', 'mecab/src/*.h') }}
- name: configure PATH
run: |
echo "$HOME/local/bin" >> "$GITHUB_PATH"
- name: install mecab
if: steps.cache.outputs.cache-hit != 'true'
run: |
./autogen.sh
./configure --enable-utf8-only --prefix "$HOME/local"
make -j$(nproc)
make install
sudo ldconfig
working-directory: mecab
- name: install ipadic utf-8
if: steps.cache.outputs.cache-hit != 'true'
run: |
./autogen.sh --prefix "$HOME/local"
./configure --with-charset=utf8
make
make install
working-directory: mecab-ipadic
- name: setup perl ${{ matrix.perl }}
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: configure C/C++
run: |
echo "LD_LIBRARY_PATH=$HOME/local/lib" >> "$GITHUB_ENV"
echo "LIBRARY_PATH=$HOME/local/lib" >> "$GITHUB_ENV"
echo "CPATH=$HOME/local/include" >> "$GITHUB_ENV"
- run: perl -V
- name: build and test
run: |
perl Makefile.PL
make
make test
working-directory: mecab/perl