Skip to content

Commit 6630ef6

Browse files
committed
[feat] ci: simplify ci
1 parent ea15b60 commit 6630ef6

File tree

7 files changed

+195
-308
lines changed

7 files changed

+195
-308
lines changed

.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: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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/ --bundle
46+
- name: build_run_cli
47+
run: |
48+
cd build
49+
./so_bundle --exec ./bin/fasttrack-cli --qt ${{ github.workspace }}/Qt/${{ env.QT_VERSION }}/gcc_64/ --bundle
50+
- name: upload_artefact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: FastTrack
54+
path: ./build/bin/fasttrack.run
55+
- name: upload_artefact
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: FastTrack-Cli
59+
path: ./build/bin/fasttrack-cli.run

0 commit comments

Comments
 (0)