-
Notifications
You must be signed in to change notification settings - Fork 231
65 lines (55 loc) · 1.56 KB
/
build-windows.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Windows CI (MinGW-w64, MSYS2)
on: [ workflow_dispatch, push ]
defaults:
run:
shell: msys2 {0}
jobs:
build:
strategy:
fail-fast: false
matrix:
sys: [ MINGW64, MINGW32 ]
runs-on: windows-latest
steps:
- name: Install packages
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: >-
git
wget
tar
make
pacboy: >-
gcc:p
qt5-base:p
qt5-serialport:p
qt5-connectivity:p
qt5-tools:p
# https://github.com/msys2/setup-msys2/tree/ee7b70729a6248e4dee7e3b299eae8965eab9980#actionscheckout-and-line-endings
- name: Configure line ending
run: git config --global core.autocrlf input
- name: Checkout repo
uses: actions/checkout@v3
- name: Download QCustomPlot
run: |
wget "https://www.qcustomplot.com/release/2.1.1/QCustomPlot-source.tar.gz"
tar -xvzf QCustomPlot-source.tar.gz
cp qcustomplot-source/qcustomplot.* ./src
- name: Build
run: |
qmake -r ./src/SerialTest.pro
make -j $(nproc)
make clean
- name: Copy DLLs
run: |
cd ./release
windeployqt ./SerialTest.exe
python ../pack/find_dlls.py ./SerialTest.exe
ls -l
- name: Save artifact
uses: actions/upload-artifact@master
with:
name: SerialTest-${{ matrix.sys }}
path: ./release/*