mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Build
|
|
on: [push]
|
|
jobs:
|
|
build-linux:
|
|
runs-on: ubuntu-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-linux
|
|
mkdir build-linux
|
|
cd build-linux
|
|
qmake ../Serial-Studio.pro
|
|
make
|
|
|
|
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
|