-
Notifications
You must be signed in to change notification settings - Fork 245
28 lines (26 loc) · 1.19 KB
/
cmake-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
##############################################################################
# GitHub Actions Workflow for building Easy3D on Windows, Ubuntu, and macOS
# Copyright (C) 2022 Liangliang Nan <liangliang.nan@gmail.com>
# Licensed under GNU LGPL-v3 (see the LICENCE file)
##############################################################################
name: Test Build Easy3D
on: [push, pull_request]
jobs:
build:
name: "Build on ${{ matrix.platform }} - ${{ matrix.build_type }}"
strategy:
fail-fast: false
matrix:
platform: [Windows, Ubuntu, macOS]
build_type: [Debug, Release]
runs-on: "${{ matrix.platform }}-latest"
steps:
- uses: actions/checkout@v1
- if: ${{ matrix.platform == 'Ubuntu' }}
name: Create Build Environment
run: sudo apt-get update || true;
sudo apt-get install libgl1-mesa-dev mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev;
- name: Configure
run: cmake -H"." -B"build/${{ matrix.build_type }}" -DEasy3D_BUILD_TESTS=ON;
- name: "Build on ${{ matrix.platform }} - ${{ matrix.build_type }}"
run: cmake --build "build/${{ matrix.build_type }}";