From 95b6dac4bc7ca1802135f738a449e6f2024df594 Mon Sep 17 00:00:00 2001 From: "Y.Horie" Date: Tue, 28 Jul 2026 20:21:50 +0900 Subject: [PATCH] ci: migrate CI to Github Actions --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 26 ------------------------ MANIFEST.SKIP | 2 +- 3 files changed, 45 insertions(+), 27 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3c4069c9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + test: + name: perl ${{ matrix.perl }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-26.04 + - ubuntu-24.04 + perl: + - "5.42" + - "5.38" + - "5.32" + - "5.26" + - "5.16" + + steps: + - uses: actions/checkout@v4 + + - name: Set up perl ${{ matrix.perl }} + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: ${{ matrix.perl }} + + - name: Install dependencies + run: cpanm --notest --installdeps . + + - name: Build + run: | + perl Makefile.PL + make -j$(nproc) + + - name: Test + run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1232b8d8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -sudo: required -dist: bionic - -os: linux - -addons: - apt: - packages: - - cpanminus - -language: perl -perl: - - "5.22" - - "5.20" - - "5.18" - - "5.16" - - "5.14" - -env: - global: - - JOBS=3 - -script: - - perl Makefile.PL - - make -j$(JOBS) - - make test diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 18df8079..6e39690c 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -37,7 +37,7 @@ genmobi\.sh$ \.tags$ \.sh$ \.pdf$ -^\.travis\.yml$ +^\.github/ ^go$ \.t_$ \.ps$