1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-19 20:22:56 +08:00
TaoQuick/.github/workflows/ubuntu18_04-qt5_12_10.yml
2020-12-01 23:23:15 +08:00

66 lines
1.9 KiB
YAML

name: ubuntu18_04-qt5_12_10
# Qt官方没有linux平台的x86包
on:
# push代码时触发workflow
push:
paths-ignore:
- '*.md'
- 'LICENSE'
- "doc/**"
- "preview/**"
- ".github/workflows/android*.yml"
- ".github/workflows/ios*.yml"
- ".github/workflows/macos*.yml"
- ".github/workflows/windows*.yml"
# pull_request时触发workflow
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
- "doc/**"
- "preview/**"
- ".github/workflows/android*.yml"
- ".github/workflows/ios*.yml"
- ".github/workflows/macos*.yml"
- ".github/workflows/windows*.yml"
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
qt_ver: [5.12.10]
qt_arch: [gcc_64]
steps:
# - 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}}
# - 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"
- name: Install Qt
# if: steps.UbuntuCacheQt.outputs.cache-hit != 'true'
uses: jurplel/install-qt-action@v2.10.0
with:
version: ${{ matrix.qt_ver }}
# cached: ${{ steps.UbuntuCacheQt.outputs.cache-hit }}
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