From 7d0f22a6a1b0fc5d415250f205ccdb38e445dd8f Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Mon, 11 Apr 2022 16:14:49 +0200 Subject: [PATCH] Github Action: Build on Linux and Windows --- .github/workflows/qmake.yml | 47 +++++++++++++++++++++++++++++++++---- 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qmake.yml b/.github/workflows/qmake.yml index 9fcbc514..ffc91214 100644 --- a/.github/workflows/qmake.yml +++ b/.github/workflows/qmake.yml @@ -7,13 +7,11 @@ on: branches: [ master ] jobs: - build: - + build-linux: + name: Linux build runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: Cache Qt id: cache-qt uses: actions/cache@v1 # not v2! @@ -44,3 +42,44 @@ jobs: run: qmake qskinny.pro - name: make 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