Create main.yml

This commit is contained in:
huderlem 2020-12-11 16:45:30 -06:00 committed by Marcus Huderle
parent 6b6ad558b6
commit cae826637e

40
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Build Porymap
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.14.2'
modules: 'qtwidgets qtqml'
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Configure
run: qmake porymap.pro
- name: Compile
run: make