Workflow test without Qwt
This commit is contained in:
parent
4093578b62
commit
3c2ff5e8c7
26
.github/workflows/Build.yml
vendored
26
.github/workflows/Build.yml
vendored
@ -1,12 +1,12 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push
|
||||||
branches:
|
# branches:
|
||||||
- master
|
# - master
|
||||||
pull_request:
|
# pull_request:
|
||||||
branches:
|
# branches:
|
||||||
- master
|
# - master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
PC_Application_Ubuntu:
|
PC_Application_Ubuntu:
|
||||||
@ -54,19 +54,21 @@ jobs:
|
|||||||
curl -o libusb.7z -L https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z
|
curl -o libusb.7z -L https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.7z
|
||||||
7z x libusb.7z -r -olibusb
|
7z x libusb.7z -r -olibusb
|
||||||
Xcopy /E /I /Y libusb\include ..\Qt\5.12.9\mingw73_64\include
|
Xcopy /E /I /Y libusb\include ..\Qt\5.12.9\mingw73_64\include
|
||||||
dir
|
Xcopy /E /I /Y libusb\MinGW64\static Software\PC_Application
|
||||||
dir ..\Qt\5.12.9
|
|
||||||
dir ..\Qt\5.12.9\mingw73_64
|
|
||||||
dir C:\Qwt-6.1.4\lib
|
|
||||||
dir ..\Qt\5.12.9\mingw73_64\bin
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: |
|
run: |
|
||||||
cd Software/PC_Application
|
cd Software/PC_Application
|
||||||
|
export LIBRARY_PATH
|
||||||
|
LIBRARY_PATH="../../libusb/MinGW64/static;$LIBRARY_PATH"
|
||||||
qmake
|
qmake
|
||||||
make -j9
|
make -j9
|
||||||
cd release
|
shell: cmd
|
||||||
|
|
||||||
|
- name: Deploy application
|
||||||
|
run: |
|
||||||
|
cd Software/PC_Application/release
|
||||||
del *.o *.cpp
|
del *.o *.cpp
|
||||||
windeployqt.exe .
|
windeployqt.exe .
|
||||||
copy ..\..\..\..\Qt\5.12.9\mingw73_64\bin\libwinpthread-1.dll .
|
copy ..\..\..\..\Qt\5.12.9\mingw73_64\bin\libwinpthread-1.dll .
|
||||||
|
@ -100,6 +100,7 @@ SOURCES += \
|
|||||||
|
|
||||||
LIBS += -lusb-1.0
|
LIBS += -lusb-1.0
|
||||||
unix:LIBS += -L/usr/lib/
|
unix:LIBS += -L/usr/lib/
|
||||||
|
win32:LIBS += -L"$$_PRO_FILE_PWD_" # Github actions placed libusb here
|
||||||
|
|
||||||
QT += widgets
|
QT += widgets
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user