Skip to content

Commit 753f427

Browse files
committed
[feat] ci: simplify ci
1 parent ea15b60 commit 753f427

7 files changed

Lines changed: 177 additions & 308 deletions

File tree

.github/workflows/build.yml

Lines changed: 0 additions & 155 deletions
This file was deleted.

.github/workflows/build_cli.yml

Lines changed: 0 additions & 148 deletions
This file was deleted.

.github/workflows/build_linux.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Build Linux
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
QT_VERSION: 6.7.2
8+
9+
jobs:
10+
build_linux:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.8'
17+
- name: install_opencv
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install mesa-common-dev libgl1-mesa-dev libssl-dev libunwind-dev
21+
sudo apt-get install libxcb-*
22+
sudo apt-get install libxkb-*
23+
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libnss3
24+
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
25+
sudo apt-get install libopencv-dev libfuse2 patchelf makeself
26+
- name: install_qt6
27+
run: |
28+
pip install aqtinstall
29+
python3 -m aqt install-qt -O ${{ github.workspace }}/Qt/ linux desktop ${{ env.QT_VERSION }}
30+
echo ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/bin/ >> $GITHUB_PATH
31+
- name: remove_MimerSQL_plugin
32+
run: |
33+
QT_DIR=${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64
34+
rm -f $QT_DIR/plugins/sqldrivers/libqsqlmimer.so
35+
rm -f $QT_DIR/lib/cmake/Qt6Sql/Qt6QMimerSQLDriverPlugin*.cmake
36+
sed -i '/QMimerSQLDriverPlugin/d' $QT_DIR/lib/cmake/Qt6Sql/Qt6SqlPlugins.cmake || true
37+
- name: build_ft
38+
run: |
39+
./run.sh ci
40+
- name: build_run
41+
run: |
42+
cd build
43+
wget https://github.com/bgallois/SoBundle/releases/download/continuous/so_bundle
44+
chmod +x so_bundle
45+
./so_bundle --exec ./bin/fasttrack --qt ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/
46+
ldd bin/appdir/fasttrack
47+
- name: build_run_cli
48+
run: |
49+
cd build
50+
./so_bundle --exec ./bin/fasttrack-cli --qt ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/ --bundle
51+
- name: upload_artefact
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: FastTrack
55+
path: ./build/bin/fasttrack.run
56+
- name: upload_artefact
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: FastTrack-Cli
60+
path: ./build/bin/fasttrack-cli.run

0 commit comments

Comments
 (0)