summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorVedang Manerikar <ved.manerikar@gmail.com>2025-12-30 19:11:55 +0530
committerVedang Manerikar <ved.manerikar@gmail.com>2025-12-30 19:16:27 +0530
commite87b3dc88c863ce631ad16d4a31e36c179d449c4 (patch)
treed3fb4c3e57e7872499d683d1a3af2d3810e73ecb /.github
parentcd9a2fe0c256fdeb5788e38f68ff124efdedf091 (diff)
feat: move from appveyor to github actions for testing pdf-tools
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c4fcdee..b87d140 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -80,3 +80,52 @@ jobs:
- name: Run tests
run: make test
+
+ build-windows:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup MSYS2
+ uses: msys2/setup-msys2@v2
+ with:
+ msystem: MINGW64
+ update: true
+ install: >-
+ git
+ base-devel
+ autoconf
+ automake
+ mingw-w64-x86_64-toolchain
+ mingw-w64-x86_64-libpng
+ mingw-w64-x86_64-poppler
+ mingw-w64-x86_64-imagemagick
+ mingw-w64-x86_64-zlib
+ mingw-w64-x86_64-openssl
+ mingw-w64-x86_64-emacs
+
+ - name: Install Cask
+ run: git clone https://github.com/cask/cask ~/.cask
+
+ - name: Compile epdfinfo server
+ run: |
+ export PATH="$HOME/.cask/bin:$PATH"
+ make autobuild
+
+ - name: Package Windows binaries
+ run: |
+ mkdir -p pack
+ cp server/epdfinfo.exe pack/
+ ldd server/epdfinfo.exe | grep mingw | cut -d' ' -f3 | xargs -I {} cp {} pack/
+ cp /mingw64/bin/libcrypto*.dll pack/ || true
+ cp /mingw64/bin/libssl*.dll pack/ || true
+
+ - name: Upload Windows artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: epdfinfo-mingw64
+ path: pack/ \ No newline at end of file