2019-12-07 15:45:19 +08:00
|
|
|
name: Ubuntu
|
|
|
|
# Qt官方没有linux平台的x86包
|
|
|
|
on:
|
2020-12-01 18:35:27 +08:00
|
|
|
# push代码时触发workflow
|
2019-12-07 15:45:19 +08:00
|
|
|
push:
|
2020-12-02 09:43:38 +08:00
|
|
|
paths:
|
|
|
|
- '3rdparty/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'mkspecs/**'
|
|
|
|
- 'src/**'
|
|
|
|
- '.qmake.conf'
|
|
|
|
- 'TaoQuick.pro'
|
|
|
|
- '.github/workflows/ubuntu.yml'
|
2020-12-01 18:35:27 +08:00
|
|
|
# pull_request时触发workflow
|
2019-12-07 15:45:19 +08:00
|
|
|
pull_request:
|
2020-12-02 09:43:38 +08:00
|
|
|
paths:
|
|
|
|
- '3rdparty/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'mkspecs/**'
|
|
|
|
- 'src/**'
|
|
|
|
- '.qmake.conf'
|
|
|
|
- 'TaoQuick.pro'
|
|
|
|
- '.github/workflows/ubuntu.yml'
|
2019-12-07 15:45:19 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-12-01 18:46:33 +08:00
|
|
|
os: [ubuntu-18.04,ubuntu-20.04]
|
2020-12-01 18:35:27 +08:00
|
|
|
qt_ver: [5.9.9,5.12.10,5.15.2]
|
2019-12-07 15:45:19 +08:00
|
|
|
qt_arch: [gcc_64]
|
|
|
|
steps:
|
|
|
|
- name: Install Qt
|
2021-03-01 09:45:19 +08:00
|
|
|
uses: jurplel/install-qt-action@v2.13.0
|
2019-12-07 15:45:19 +08:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.qt_ver }}
|
2020-12-01 18:35:27 +08:00
|
|
|
cached: 'false'
|
2019-12-07 15:45:19 +08:00
|
|
|
- name: ubuntu install GL library
|
|
|
|
run: sudo apt-get install -y libglew-dev libglfw3-dev
|
2021-03-01 09:45:19 +08:00
|
|
|
- uses: actions/checkout@v2
|
2019-12-07 15:45:19 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2021-01-25 14:27:03 +08:00
|
|
|
submodules: 'true'
|
2019-12-07 15:45:19 +08:00
|
|
|
- name: build ubuntu
|
|
|
|
run: |
|
|
|
|
qmake
|
|
|
|
make
|