mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
42 lines
993 B
YAML
42 lines
993 B
YAML
name: Ubuntu
|
|
# Qt官方没有linux平台的x86包
|
|
on:
|
|
push:
|
|
paths:
|
|
- '*.pro'
|
|
- 'src/**'
|
|
- '.github/workflows/ubuntu.yml'
|
|
pull_request:
|
|
paths:
|
|
- '*.pro'
|
|
- 'src/**'
|
|
- '.github/workflows/ubuntu.yml'
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-18.04,ubuntu-20.04]
|
|
qt_ver: [5.15.2]
|
|
qt_arch: [gcc_64]
|
|
exclude:
|
|
# Qt6.2.2 need GLIBC_2.28, ubuntu 18.04 have not.
|
|
- os: ubuntu-18.04
|
|
qt_ver: 6.2.2
|
|
qt_arch: gcc_64
|
|
steps:
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v2
|
|
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@v2
|
|
with:
|
|
fetch-depth: 1
|
|
- name: build ubuntu
|
|
run: |
|
|
qmake
|
|
make |