add github action for CI on mingw64
authorTony Cook <tony@develop-help.com>
Sat, 21 Mar 2020 09:06:27 +0000 (20:06 +1100)
committerTony Cook <tony@develop-help.com>
Sun, 17 May 2020 01:34:45 +0000 (11:34 +1000)
.github/workflows/test-linux-i386.yml [new file with mode: 0644]
.github/workflows/test-linux.yml
.github/workflows/test-win32-mingw64.yml [new file with mode: 0644]

diff --git a/.github/workflows/test-linux-i386.yml b/.github/workflows/test-linux-i386.yml
new file mode 100644 (file)
index 0000000..2affbb5
--- /dev/null
@@ -0,0 +1,34 @@
+name: test-linux-i386
+
+on:
+  push:
+    branches:
+      - '**'
+    tags-ignore:
+      - '*'
+  pull_request:
+
+jobs:
+  imager:
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    container:
+        image: i386/ubuntu:latest
+        env:
+            WORKSPACE: ${{ github.workspace }}
+    steps:
+      - name: install dependencies
+        run: |
+            apt-get update ||:
+            apt-get -y install build-essential libtiff-dev libpng-dev libgif-dev libfreetype6-dev libjpeg-dev git-core
+      - name: checkout
+        uses: actions/checkout@v1
+      - name: configure
+        run: |
+          perl Makefile.PL
+      - name: build
+        run: |
+            make -j2
+      - name: test
+        run: |
+            HARNESS_OPTIONS=j2 make test
index 9d443bd..69bf892 100644 (file)
@@ -1,4 +1,4 @@
-name: smoke-linux
+name: test-linux
 
 on:
   push:
diff --git a/.github/workflows/test-win32-mingw64.yml b/.github/workflows/test-win32-mingw64.yml
new file mode 100644 (file)
index 0000000..c4cf06b
--- /dev/null
@@ -0,0 +1,30 @@
+name: test-win32-mingw64
+on:
+  push:
+    branches:
+      - '**'
+    tags-ignore:
+      - '*'
+  pull_request:
+
+jobs:
+  imager:
+    runs-on: windows-latest
+    timeout-minutes: 15
+    steps:
+      - run: git config --global core.autocrlf false
+      - uses: actions/checkout@v2
+      - name: set up perl
+        run: |
+            choco install strawberryperl
+            echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"
+      - name: configure
+        run: |
+           perl Makefile.PL
+      - name: build
+        run: |
+            gmake -j2
+      - name: test
+        run: |
+            set HARNESS_OPTIONS=j2
+            gmake test