mirror of
https://github.com/leozide/leocad
synced 2025-01-01 06:19:55 +01:00
38 lines
906 B
YAML
38 lines
906 B
YAML
name: LeoCAD CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
cache: 'true'
|
|
- name: Get number of CPU cores
|
|
uses: SimenB/github-actions-cpu-cores@v1
|
|
id: cpu-cores
|
|
- name: Generate Makefile
|
|
run: qmake PREFIX=/usr
|
|
- name: Build
|
|
run: make -j ${{ steps.cpu-cores.outputs.count }}
|
|
|
|
build-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
cache: 'true'
|
|
- name: Get number of CPU cores
|
|
uses: SimenB/github-actions-cpu-cores@v1
|
|
id: cpu-cores
|
|
- name: Generate Makefile
|
|
run: qmake PREFIX=/usr
|
|
- name: Build
|
|
run: make -j ${{ steps.cpu-cores.outputs.count }}
|