1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-19 20:22:56 +08:00

58 lines
1.6 KiB
YAML
Raw Normal View History

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:
paths-ignore:
2020-12-01 18:35:27 +08:00
- '*.md'
2019-12-07 15:45:19 +08:00
- 'LICENSE'
2020-12-01 18:35:27 +08:00
- "doc/**"
- "preview/**"
# pull_request时触发workflow
2019-12-07 15:45:19 +08:00
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
2020-12-01 18:35:27 +08:00
- "doc/**"
- "preview/**"
2019-12-07 15:45:19 +08:00
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
2020-12-01 18:35:27 +08:00
os: [ubuntu-16.04,ubuntu-18.04,ubuntu-20.04]
qt_ver: [5.9.9,5.12.10,5.15.2]
2019-12-07 15:45:19 +08:00
qt_arch: [gcc_64]
steps:
2020-12-01 18:35:27 +08:00
# - name: cacheQt
# id: UbuntuCacheQt
# uses: actions/cache@v1
# with:
# path: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
# key: ${{ runner.os }}-Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
2020-06-15 09:08:00 +08:00
# - name: setupQt
# if: steps.UbuntuCacheQt.outputs.cache-hit == 'true'
# shell: pwsh
# env:
# QtPath: ../Qt/${{matrix.qt_ver}}/${{matrix.qt_arch}}
# run: |
# $qt_Path=${env:QtPath}
# echo "::set-env name=Qt5_Dir::$qt_Path"
# echo "::add-path::$qt_Path/bin"
2019-12-07 15:45:19 +08:00
- name: Install Qt
2020-06-15 09:08:00 +08:00
# if: steps.UbuntuCacheQt.outputs.cache-hit != 'true'
2020-12-01 18:35:27 +08:00
uses: jurplel/install-qt-action@v2.10.0
2019-12-07 15:45:19 +08:00
with:
version: ${{ matrix.qt_ver }}
2020-12-01 18:35:27 +08:00
# cached: ${{ steps.UbuntuCacheQt.outputs.cache-hit }}
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
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: build ubuntu
run: |
qmake
make