Skip to content

Battery quick;

Battery quick; #45

Workflow file for this run

name: QMake Build
on:
push:
paths-ignore: # 下列文件的变更不触发部署,可以自行添加
- '.github/workflows/cmake.yml'
- '.github/workflows/delete_workflow.yml'
- '.github/workflows/readme.yml'
- '**/picture/**'
- 'packaging/**'
- '.clang-format'
- '.gitignore'
- 'LICENSE'
- 'README*'
pull_request:
paths-ignore: # 下列文件的变更不触发部署,可以自行添加
- '.github/workflows/cmake.yml'
- '.github/workflows/delete_workflow.yml'
- '.github/workflows/readme.yml'
- '**/picture/**'
- 'packaging/**'
- '.clang-format'
- '.gitignore'
- 'LICENSE'
- 'README*'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2019
- macos-latest
- ubuntu-latest
qt_ver:
- 6.6.1
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_ver }}
install-deps: 'true'
modules: 'addons.qtcharts addons.qtnetworkauth'
cache: 'true'
- name: ubuntu install GL library
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y build-essential libgl1-mesa-dev
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: msvc-build
if: startsWith(matrix.os, 'windows')
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
qmake
nmake
- name: build macos or ubuntu
if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
shell: bash
run: |
qmake
make -j4