aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorGravatar Gary Wang <wzc782970009@gmail.com> 2022-10-02 16:08:14 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-10-02 23:54:49 -0400
commit40683b036156528669f5f9c3e7d3c6fa693dd875 (patch)
treef24da1a80367e52308375e346842d35f66fe5c90 /.github/workflows
parentcf4034366bccf912bad0d615954498c927c52a75 (diff)
downloaddeduper-40683b036156528669f5f9c3e7d3c6fa693dd875.tar.xz
add MSYS2 MinGW64 CI build for Windows
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/windows-msys2.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml
new file mode 100644
index 0000000..f95a244
--- /dev/null
+++ b/.github/workflows/windows-msys2.yml
@@ -0,0 +1,40 @@
+name: Windows MSYS2 Build
+on: [push, pull_request]
+
+jobs:
+ build:
+ runs-on: windows-latest
+ defaults:
+ run:
+ shell: msys2 {0}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: MINGW64
+ update: true
+ pacboy: >-
+ toolchain:p ninja:p cmake:p
+ qt5:p opencv:p sqlite3:p
+ - name: Build deduper
+ run: |
+ mkdir build && cd build
+ cmake .. -G Ninja
+ cmake --build . -j
+ cd ..
+ - name: Prepare for package
+ continue-on-error: true
+ run: |
+ mkdir package_workspace && cd package_workspace
+ cp ../build/qdeduper/qdeduper.exe ./
+ strip -S ./qdeduper.exe
+ windeployqt -winextras --no-quick-import --no-translations --no-opengl-sw --no-angle --no-system-d3d-compiler ./qdeduper.exe
+ ldd ./qdeduper.exe > deps-qdeduper.txt
+ bash -c 'while read -r line; do path=$(cut -d" " -f3 <<<$line); cp -v $path ./; done <<<$(grep ".*mingw.*bin" deps-qdeduper.txt); exit 0'
+ rm deps-qdeduper.txt
+ # done
+ cd ../
+ - uses: actions/upload-artifact@v2
+ with:
+ name: msys2-mingw-w64-x86_64-windows
+ path: package_workspace/*