Merge pull request #2036 from ikedas/uptodate-gettext by ikedas #1179
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags-ignore: | |
| - '*' | |
| pull_request: | |
| branches-ignore: | |
| - 'translation' | |
| jobs: | |
| make-check: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - 'macos-15-intel' | |
| - 'macos-latest' | |
| - 'ubuntu-latest' | |
| perl: | |
| - '5' | |
| - '5.40' | |
| - '5.38' | |
| - '5.36' | |
| #- '5.34' | |
| - '5.32' | |
| - '5.30' | |
| #- '5.28' | |
| - '5.26' | |
| name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies for Linux | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt update -y | |
| sudo apt install -y gettext | |
| sudo apt install -y autopoint | |
| - name: Install dependencies for macOS | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install automake | |
| brew install openssl | |
| brew install pkg-config | |
| - name: Workaround for macOS | |
| if: runner.os == 'macOS' | |
| run: | | |
| # For gettext 0.24.1 | |
| echo "ACLOCAL_PATH=$(brew --prefix gettext)/share/gettext/m4" >> $GITHUB_ENV | |
| # For Crypt::SMIME | |
| echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >> $GITHUB_ENV | |
| - name: Set up Perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| perl-version: ${{ matrix.perl }} | |
| install-modules-with: cpanm | |
| install-modules-args: > | |
| --verbose --no-interactive | |
| --with-develop | |
| --with-feature=Data::Password --with-feature=ldap | |
| --with-feature=smime | |
| --with-feature=soap --with-feature=sqlite | |
| ${{ startsWith(matrix.os, 'macos') && '--with-feature=macos' || '' }} | |
| - name: Run tests | |
| run: | | |
| if [ "$(uname -s)" = "Linux" ]; then | |
| # Workaround to avoid reference to older libcrypto by perl binary | |
| export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu | |
| fi | |
| PERL5LIB= autoreconf -i | |
| ./configure --with-defaultdir=`pwd`/default | |
| cd src; make; cd .. | |
| #make check-local TEST_FILES='xt/perltidy.t' || true | |
| make check-local | |
| shell: bash |