-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 1.46 KB
/
windows-msys2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Windows MSYS2 Build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
pacboy: >-
toolchain:p ninja:p cmake:p extra-cmake-modules:p
jasper:p icoutils:p
qt6:p libopenmpt:p portaudio:p
- name: Build pineapple-tracker-player
run: |
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX="package_workspace" -G Ninja
cmake --build . -j
cmake --build . --target install/strip
- name: Prepare for package
run: |
cd build/package_workspace/bin
ldd ./pineapple-tracker-player.exe > deps-trackerplayer.txt
bash -c 'while read -r line; do path=$(cut -d" " -f3 <<<$line); cp -v $path ./; done <<<$(grep ".*mingw.*bin" deps-trackerplayer.txt); exit 0'
# windeployqt6 --no-translations --no-opengl-sw --no-system-d3d-compiler ./pineapple-tracker-player-quick.exe
windeployqt6 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler ./pineapple-tracker-player.exe
# rm deps-trackerplayer.txt
# done
cd ../../
- uses: actions/upload-artifact@v4
with:
name: msys2-mingw-w64-x86_64-windows
path: build/package_workspace/*