2022-01-17 14:19:56 +00:00
|
|
|
name: Ubuntu
|
|
|
|
# Qt官方没有linux平台的x86包
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
paths:
|
|
|
|
- '*.pro'
|
|
|
|
- 'src/**'
|
|
|
|
- '.github/workflows/ubuntu.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
paths:
|
|
|
|
- '*.pro'
|
|
|
|
- 'src/**'
|
|
|
|
- '.github/workflows/ubuntu.yml'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-20.04]
|
|
|
|
qt_ver: [5.15.2]
|
|
|
|
qt_arch: [gcc_64]
|
|
|
|
steps:
|
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v2.13.0
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
|
|
|
cached: 'false'
|
|
|
|
modules: qtwebengine
|
|
|
|
- name: ubuntu install thirdparty dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get install git pkg-config build-essential qt5-qmake
|
|
|
|
sudo apt-get install libvorbis-dev zlib1g-dev libhunspell-dev x11proto-record-dev
|
|
|
|
sudo apt-get install qtdeclarative5-dev libxtst-dev liblzo2-dev libbz2-dev
|
|
|
|
sudo apt-get install libao-dev libavutil-dev libavformat-dev libtiff5-dev libeb16-dev
|
|
|
|
sudo apt-get install libqt5webkit5-dev libqt5svg5-dev libqt5x11extras5-dev qttools5-dev
|
|
|
|
sudo apt-get install qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins
|
|
|
|
sudo ln -sf /usr/bin/x86_64-linux-gnu-ld.gold /usr/bin/ld
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2022-01-21 14:38:59 +00:00
|
|
|
# - name: build singleapplication
|
|
|
|
# run: |
|
|
|
|
# cd qtsingleapplication
|
|
|
|
# qmake
|
|
|
|
# make
|
2022-01-17 14:19:56 +00:00
|
|
|
- name: build goldendict
|
|
|
|
run: |
|
|
|
|
qmake
|
|
|
|
make
|