Skip to content

Commit

Permalink
[feat] ci: update qt&opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Aug 19, 2024
1 parent 0507faa commit 35631f5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
branches: [master]

env:
QT_VERSION: 6.5.2
OPENCV_VERSION: 4.8.0
OPENCV_VERSION_: 480
QT_VERSION: 6.7.2
OPENCV_VERSION: 4.10.0
OPENCV_VERSION_: 4100

jobs:
build_linux:
Expand All @@ -32,6 +32,7 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -O ${{ github.workspace }}/Qt/ linux desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/ >> $GITHUB_PATH
rm ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/plugins/sqldrivers/libqsqlmimer.so
- name: build_ft
run: |
./run.sh ci
Expand All @@ -45,7 +46,7 @@ jobs:
cp fasttrack appdir
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/lib/
chmod +x deploy.AppImage
./deploy.AppImage appdir/fasttrack -bundle-non-qt-libs -unsupported-allow-new-glibc -qmake=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/qmake6 -extra-plugins=platforms/,sqldrivers/ -exclude-libs=libgmodule-2.0.so
./deploy.AppImage appdir/fasttrack -bundle-non-qt-libs -unsupported-allow-new-glibc -qmake=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/qmake6 -extra-plugins=platforms/,sqldrivers/ -exclude-libs=libgmodule-2.0.so,libmimerapi.so
mkdir -p appdir/usr/share/fasttrack/
cp *.qm appdir/usr/share/fasttrack
wget -O tool.AppImage https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage
Expand Down Expand Up @@ -109,6 +110,9 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -m qtcharts -O ${{ github.workspace }}/Qt/ mac desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/bin/ >> $GITHUB_PATH
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlmimer.*
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlodbc.*
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlpsql.*
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -125,7 +129,6 @@ jobs:
brew upgrade -q -f
brew install pkg-config
brew install openssl
brew unlink unixodbc
brew install libiodbc
brew tap FastTrackOrg/fasttrack
brew install --build-from-source FastTrackOrg/fasttrack/opencv
Expand All @@ -138,7 +141,6 @@ jobs:
macdeployqt FastTrack.app -always-overwrite
wget https://raw.githubusercontent.com/tamlok/macdeployqtfix/master/macdeployqtfix.py
cp *.qm FastTrack.app/Contents/Resources/
cp /usr/local/lib/libsharp* FastTrack.app/Contents/Frameworks
python macdeployqtfix.py FastTrack.app/Contents/MacOS/FastTrack ../../Qt/${{ env.QT_VERSION }}/
hdiutil create -volname FastTrack -srcfolder FastTrack.app -ov -format UDZO FastTrack.dmg
- name: upload_artefact
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/build_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
branches: [master]

env:
QT_VERSION: 6.5.2
OPENCV_VERSION: 4.8.0
OPENCV_VERSION_: 480
QT_VERSION: 6.7.2
OPENCV_VERSION: 4.10.0
OPENCV_VERSION_: 4100

jobs:
build_linux:
Expand All @@ -32,6 +32,7 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -O ${{ github.workspace }}/Qt/ linux desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/ >> $GITHUB_PATH
rm ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/plugins/sqldrivers/libqsqlmimer.so
- name: build_ftcli
run: |
./run.sh cli
Expand All @@ -43,7 +44,7 @@ jobs:
cp sh.fasttrack.fasttrackcli.desktop build_cli/
cp src/assets/fasttrack.png build_cli/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/lib/
./deploy.AppImage build_cli/fasttrack-cli -appimage -no-translations -bundle-non-qt-libs -unsupported-allow-new-glibc -qmake=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/qmake6 -extra-plugins=platforms/,sqldrivers/ -exclude-libs=libgmodule-2.0.so
./deploy.AppImage build_cli/fasttrack-cli -appimage -no-translations -bundle-non-qt-libs -unsupported-allow-new-glibc -qmake=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/qmake6 -extra-plugins=platforms/,sqldrivers/ -exclude-libs=libgmodule-2.0.so,libmimerapi.so
mv FastTrack*.AppImage FastTrack-cli-x86_64.AppImage
- name: upload_artefact
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -102,6 +103,9 @@ jobs:
pip install aqtinstall
python3 -m aqt install-qt -O ${{ github.workspace }}/Qt/ mac desktop ${{ env.QT_VERSION }}
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/bin/ >> $GITHUB_PATH
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlmimer.*
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlodbc.*
rm -r ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/macos/plugins/sqldrivers/libqsqlpsql.*
- name: Set up Homebrew #https://github.com/Homebrew/homebrew-cask/issues/150323
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -118,7 +122,6 @@ jobs:
brew upgrade -q -f
brew install pkg-config
brew install openssl
brew unlink unixodbc
brew install libiodbc
brew tap FastTrackOrg/fasttrack
brew install --build-from-source FastTrackOrg/fasttrack/opencv
Expand All @@ -129,7 +132,6 @@ jobs:
make
cd build_cli/
macdeployqt FastTrack-cli.app -always-overwrite
cp /usr/local/lib/libsharp* FastTrack-cli.app/Contents/Frameworks
wget https://raw.githubusercontent.com/tamlok/macdeployqtfix/master/macdeployqtfix.py
python macdeployqtfix.py FastTrack-cli.app/Contents/MacOS/FastTrack-cli ../../Qt/${{ env.QT_VERSION }}/
hdiutil create -volname FastTrack-cli -srcfolder FastTrack-cli.app -ov -format UDZO FastTrack-cli.dmg
Expand Down
2 changes: 1 addition & 1 deletion src/FastTrack-Cli.pro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ win32 {
CONFIG += c++2a
QMAKE_CXXFLAGS += -O3
CONFIG += console
LIBS += -L"$$PWD/../OpenCV_MinGW_64/lib" -lopencv_world480
LIBS += -L"$$PWD/../OpenCV_MinGW_64/lib" -lopencv_world4100
INCLUDEPATH += "$$PWD/../OpenCV_MinGW_64/include"
}

Expand Down
2 changes: 1 addition & 1 deletion src/FastTrack.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ win32 {
TARGET = FastTrack
CONFIG += c++2a
QMAKE_CXXFLAGS += -O3
LIBS += -L"$$PWD/../OpenCV_MinGW_64/lib" -lopencv_world480
LIBS += -L"$$PWD/../OpenCV_MinGW_64/lib" -lopencv_world4100
INCLUDEPATH += "$$PWD/../OpenCV_MinGW_64/include"
}

Expand Down

0 comments on commit 35631f5

Please sign in to comment.