Skip to content

Commit

Permalink
Add MacOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Chernetskyi committed Oct 6, 2020
1 parent f4dfdd1 commit fe54747
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: MacOS

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: macos-10.15
if: "!contains(github.event.head_commit.message, '[skip ci]')"

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
[[ -r dependencies/homebrew.txt ]] && sed 's/#.*//' dependencies/homebrew.txt | xargs brew install
- name: Configure
run: cmake -DENABLE_CONAN=OFF -Bbuild

- name: Build
run: cmake --build build
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ Dependencies (such as development libraries) can be found in the [dependencies f
git clone [email protected]:chernetskyi/cpp-template.git
```
2. Install required packages.

On Ubuntu:
```bash
[[ -r dependencies/apt.txt ]] && sed 's/#.*//' dependencies/apt.txt| xargs sudo apt-get install -y
```
On MacOS:
```bash
[[ -r dependencies/homebrew.txt ]] && sed 's/#.*//' dependencies/homebrew.txt | xargs brew install
```
Use Conan on Windows.
3. Build.
```bash
Expand Down
1 change: 1 addition & 0 deletions dependencies/homebrew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boost

0 comments on commit fe54747

Please sign in to comment.