Github Action: Build on Linux and Windows
This commit is contained in:
parent
0ba1933215
commit
7d0f22a6a1
|
@ -7,13 +7,11 @@ on:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux:
|
||||||
|
name: Linux build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Cache Qt
|
- name: Cache Qt
|
||||||
id: cache-qt
|
id: cache-qt
|
||||||
uses: actions/cache@v1 # not v2!
|
uses: actions/cache@v1 # not v2!
|
||||||
|
@ -44,3 +42,44 @@ jobs:
|
||||||
run: qmake qskinny.pro
|
run: qmake qskinny.pro
|
||||||
- name: make
|
- name: make
|
||||||
run: make -j$(nproc)
|
run: make -j$(nproc)
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
name: Windows build
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Cache Qt
|
||||||
|
id: cache-qt
|
||||||
|
uses: actions/cache@v1 # not v2!
|
||||||
|
with:
|
||||||
|
path: ../Qt
|
||||||
|
key: ${{ runner.os }}-QtCache
|
||||||
|
|
||||||
|
- name: Install Qt
|
||||||
|
uses: jurplel/install-qt-action@v2
|
||||||
|
with:
|
||||||
|
version: '5.15.2'
|
||||||
|
host: 'windows'
|
||||||
|
target: 'desktop'
|
||||||
|
arch: 'win64_msvc2019_64'
|
||||||
|
install-deps: 'true'
|
||||||
|
modules: 'qtwebengine'
|
||||||
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
||||||
|
setup-python: 'true'
|
||||||
|
tools: ''
|
||||||
|
set-env: 'true'
|
||||||
|
tools-only: 'false'
|
||||||
|
|
||||||
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
|
- name: Qt version
|
||||||
|
run: qmake -v
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
|
- name: qmake
|
||||||
|
run: qmake qskinny.pro
|
||||||
|
shell: cmd
|
||||||
|
|
||||||
|
- name: nmake
|
||||||
|
run: nmake
|
||||||
|
shell: cmd
|
||||||
|
|
Loading…
Reference in New Issue