mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-19 20:22:56 +08:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Ubuntu
|
|
# Qt官方没有linux平台的x86包
|
|
on:
|
|
# push代码时触发workflow
|
|
push:
|
|
paths:
|
|
- '3rdparty/**'
|
|
- 'examples/**'
|
|
- 'mkspecs/**'
|
|
- 'src/**'
|
|
- '.qmake.conf'
|
|
- 'TaoQuick.pro'
|
|
- '.github/workflows/ubuntu.yml'
|
|
# pull_request时触发workflow
|
|
pull_request:
|
|
paths:
|
|
- '3rdparty/**'
|
|
- 'examples/**'
|
|
- 'mkspecs/**'
|
|
- 'src/**'
|
|
- '.qmake.conf'
|
|
- 'TaoQuick.pro'
|
|
- '.github/workflows/ubuntu.yml'
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-18.04,ubuntu-20.04]
|
|
qt_ver: [5.9.9,5.12.10,5.15.2]
|
|
qt_arch: [gcc_64]
|
|
steps:
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v2.10.0
|
|
with:
|
|
version: ${{ matrix.qt_ver }}
|
|
cached: 'false'
|
|
- name: ubuntu install GL library
|
|
run: sudo apt-get install -y libglew-dev libglfw3-dev
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
fetch-depth: 1
|
|
- name: build ubuntu
|
|
run: |
|
|
qmake
|
|
make |