2020-12-25 00:02:06 -06:00
|
|
|
name: Build
|
2020-12-24 23:29:05 -06:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2020-12-24 23:34:12 -06:00
|
|
|
build-linux:
|
2020-12-24 23:29:05 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-12-24 23:54:11 -06:00
|
|
|
- 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:
|
|
|
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
|
|
|
|
|
|
|
- name: Compile
|
2020-12-24 23:56:45 -06:00
|
|
|
run: rm -rf build-linux
|
|
|
|
mkdir build-linux
|
2020-12-24 23:54:11 -06:00
|
|
|
cd build-linux
|
|
|
|
qmake ../Serial-Studio.pro
|
|
|
|
make
|
2020-12-25 21:17:44 -06:00
|
|
|
|
|
|
|
build-mac:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- 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:
|
|
|
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: rm -rf build-mac
|
|
|
|
mkdir build-mac
|
|
|
|
cd build-mac
|
|
|
|
qmake ../Serial-Studio.pro
|
|
|
|
make
|