summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/linux.yml40
-rw-r--r--.github/workflows/windows.does_not_work46
2 files changed, 86 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..b731c62
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,40 @@
+# This workflow will build po4a on linux using Module::Build
+name: Build on Linux CI
+
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Install Debian dependencies
+ run: |
+ sudo apt update
+ sudo apt install -y liblocale-gettext-perl libtext-wrapi18n-perl libunicode-linebreak-perl libpod-parser-perl libtest-pod-perl libyaml-tiny-perl libsyntax-keyword-try-perl
+ sudo apt install -y cpanminus gettext docbook-xml docbook-xsl docbook xsltproc
+ sudo apt install -y texlive-binaries texlive-latex-base opensp libsgmls-perl
+ - name: Install CPAN dependencies
+ run: |
+ cpanm Locale::gettext
+ cpanm http://search.cpan.org/CPAN/authors/id/R/RA/RAAB/SGMLSpm-1.1.tar.gz
+ cpanm Text::WrapI18N
+ cpanm Unicode::GCString
+
+ cpanm -v --installdeps --notest .
+
+ - name: Build
+ run: |
+ perl Build.PL
+ COLUMNS=120 ./Build verbose=1
+
+ - name: Test
+ run: ./Build test verbose=1
diff --git a/.github/workflows/windows.does_not_work b/.github/workflows/windows.does_not_work
new file mode 100644
index 0000000..10326a8
--- /dev/null
+++ b/.github/workflows/windows.does_not_work
@@ -0,0 +1,46 @@
+# This does not work because the tests rely heavily on the diff utility
+# that is not available on Windows. We could change it to use a Perl
+# implementation of diff. PR would be very welcomed here.
+
+# This workflow will build po4a on linux using Module::Build
+name: Build on Windows CI
+
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+
+jobs:
+ build:
+
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: shogo82148/actions-setup-perl@v1
+ with:
+ #perl-version: '5.32'
+ distribution: strawberry
+ install-modules-with: cpanm
+ install-modules: Term::ReadKey Unicode::GCString Syntax::Keyword::Try http://search.cpan.org/CPAN/authors/id/R/RA/RAAB/SGMLSpm-1.1.tar.gz YAML::Tiny
+ # Locale::gettext and Text::WrapI18N seem broken on windows.
+ - run: perl -V
+# - name: Install Debian dependencies
+# run: |
+# sudo apt update
+# sudo apt install -y liblocale-gettext-perl libtext-wrapi18n-perl libunicode-linebreak-perl libtest-pod-perl libyaml-tiny-perl libsyntax-keyword-try-perl
+# sudo apt install -y cpanminus gettext docbook-xml docbook-xsl docbook xsltproc
+# sudo apt install -y texlive-binaries texlive-latex-base opensp libsgmls-perl
+
+ - run: cpanm -v --installdeps --notest .
+
+ - name: Create the Build script
+ run: perl Build.PL
+ - name: Actual build
+ run: ./Build verbose=1
+
+ - name: Test
+ run: ./Build test verbose=1