-
Notifications
You must be signed in to change notification settings - Fork 7
156 lines (136 loc) · 4.72 KB
/
linux.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: linux
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'docs/**'
- 'README.md'
- 'README_zh_CN.md'
- 'README_zh_HK.md'
- 'README_ja_JP.md'
- 'DEVELOPNOTE.md'
- 'DEVELOPNOTE_zh_CN.md'
- 'CHANGELOG.md'
- 'CODE_OF_CONDUCT.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE/**'
- 'TODO.md'
- '.readthedocs.yaml'
tags:
- V**
pull_request:
branches: [ main ]
paths-ignore:
- 'doc/**'
- 'docs/**'
- 'README.md'
- 'README_zh_CN.md'
- 'README_zh_HK.md'
- 'README_ja_JP.md'
- 'DEVELOPNOTE.md'
- 'DEVELOPNOTE_zh_CN.md'
- 'CHANGELOG.md'
- 'CODE_OF_CONDUCT.md'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE/**'
- 'TODO.md'
- '.readthedocs.yaml'
workflow_dispatch:
jobs:
ubuntu-2004:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.5.3'
modules: 'qtwebsockets qtserialport qtmultimedia'
aqtversion: ==3.1.7
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y make gcc patchelf chrpath qt5-default libxcb-cursor0 build-essential libgtk-3-dev
- name: Install setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: build fcitx_qt6
run: |
cd depend
sudo apt install fcitx-libs-dev qtbase5-private-dev libxkbcommon-dev extra-cmake-modules tree
export PATH=$Qt6_DIR/bin:$PATH
export PATH=$Qt6_DIR/../../Qt/Tools/CMake/bin:$PATH
export Qt6GuiTools_DIR=$Qt6_DIR
./build_fcitx_qt6_linux.sh
cp ./fcitx-qt5-1.2.7/build/qt6/platforminputcontext/libfcitxplatforminputcontextplugin-qt6.so ./
- name: build libssh2
run: |
cd depend
export PATH=$Qt6_DIR/bin:$PATH
./build_libssh2.sh
sudo cp -R ./output /usr/local/
- name: Build all
run: |
git fetch --tags --force
sed -i 's/--long --dirty/--long/g' ./tools/generate_info.sh
sed -i 's/QT_DIR=\/opt\/Qt6.2.0\/6.2.0\/gcc_64/QT_DIR=$(cd "$(dirname "$0")";pwd)\/..\/Qt\/6.5.3\/gcc_64/g' build_deb.sh
sed -i 's/LIBSSH2_DIR=\/libssh2/LIBSSH2_DIR=\/usr\/local\/output/g' ./lib/qtssh/qtssh.pri
mkdir prebuilt_plugins
python3 ./.github/scripts/get_plugin.py ./.github/scripts/plugin_list.json ./prebuilt_plugins
./build_deb.sh
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: quardCRT_Ubuntu2004
path: |
./dpkg/*.deb
appimage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.5.3'
modules: 'qtwebsockets qtserialport qtmultimedia'
aqtversion: ==3.1.7
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y make gcc patchelf chrpath qt5-default libxcb-cursor0 build-essential libgtk-3-dev
- name: Install setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: build fcitx_qt6
run: |
cd depend
sudo apt install fcitx-libs-dev qtbase5-private-dev libxkbcommon-dev extra-cmake-modules tree
export PATH=$Qt6_DIR/bin:$PATH
export PATH=$Qt6_DIR/../../Qt/Tools/CMake/bin:$PATH
export Qt6GuiTools_DIR=$Qt6_DIR
./build_fcitx_qt6_linux.sh
cp ./fcitx-qt5-1.2.7/build/qt6/platforminputcontext/libfcitxplatforminputcontextplugin-qt6.so ./
- name: build libssh2
run: |
cd depend
export PATH=$Qt6_DIR/bin:$PATH
./build_libssh2.sh
sudo cp -R ./output /usr/local/
- name: Build all
run: |
git fetch --tags --force
sed -i 's/--long --dirty/--long/g' ./tools/generate_info.sh
sed -i 's/QT_DIR=\/opt\/Qt6.2.0\/6.2.0\/gcc_64/QT_DIR=$(cd "$(dirname "$0")";pwd)\/..\/Qt\/6.5.3\/gcc_64/g' build_AppImage.sh
sed -i 's/LIBSSH2_DIR=\/libssh2/LIBSSH2_DIR=\/usr\/local\/output/g' ./lib/qtssh/qtssh.pri
mkdir prebuilt_plugins
python3 ./.github/scripts/get_plugin.py ./.github/scripts/plugin_list.json ./prebuilt_plugins
./build_AppImage.sh
- name: Upload build asserts
uses: actions/upload-artifact@v4
with:
name: quardCRT_AppImage
path: |
./AppImageOut/*.AppImage