Skip to content

Commit 611b64d

Browse files
authored
Added macos Github action;
1 parent 5b2a8a0 commit 611b64d

11 files changed

+971
-38
lines changed

.github/workflows/blank.yml

-36
This file was deleted.

.github/workflows/macos.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: macos
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- CMakeLists.txt
9+
- CMake/**
10+
- src/**
11+
- tests/**
12+
pull_request:
13+
paths:
14+
- CMakeLists.txt
15+
- CMake/**
16+
- src/**
17+
- tests/**
18+
19+
jobs:
20+
build-macos:
21+
runs-on: macos-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
build_type: [Debug, Release]
26+
env:
27+
BUILD_TYPE: ${{ matrix.build_type }}
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
32+
- name: Upgrading CMake
33+
run: |
34+
brew upgrade cmake
35+
cmake --version
36+
37+
- name: Get Conan
38+
uses: turtlebrowser/[email protected]
39+
40+
- name: Add custom conan repo
41+
run: conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
42+
43+
- name: Create Build Environment
44+
run: cmake -E make_directory ${{github.workspace}}/build
45+
46+
- name: Configure CMake
47+
shell: bash
48+
working-directory: ${{github.workspace}}/build
49+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
50+
51+
- name: Build
52+
working-directory: ${{github.workspace}}/build
53+
shell: bash
54+
run: cmake --build . --config $BUILD_TYPE

0 commit comments

Comments
 (0)