aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/*