Skip to content

Commit

Permalink
Introduce GHA build for Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Apr 5, 2024
1 parent a29cb75 commit a38a2f0
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux build check
name: Linux build

on:
pull_request:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: MacOS build (Homebrew)

on:
pull_request:
branches: [ "master" ]

permissions:
issues: write
pull-requests: write
checks: write

jobs:
build:

runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies
run: |
brew install git gcc cmake sqlite3 gcovr jpeg
- name: Clone aquamarine repo
run: git clone --branch ${{ github.head_ref }} https://github.com/MaksymT17/aquamarine.git

- name: Build artifacts with Cmake
run: |
cd aquamarine &&
./build.sh
- name: Run unit test
run: |
cd aquamarine/unit_tests &&
./prepare_build.sh &&
cd build &&
make -j8 &&
./aquamarine_ut
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux & Windows build check on master branch push event
name: Linux & Windows & Mac builds check on master branch push event

on:
push:
Expand Down Expand Up @@ -60,4 +60,31 @@ jobs:
cmake .. &&
cmake --build . &&
echo "Build complete!"
shell: bash
shell: bash

build-macos:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies
run: |
brew install git gcc cmake sqlite3 gcovr jpeg
- name: Clone aquamarine repo
run: git clone --branch ${{ github.head_ref }} https://github.com/MaksymT17/aquamarine.git

- name: Build artifacts with Cmake
run: |
cd aquamarine &&
./build.sh
- name: Run unit test
run: |
cd aquamarine/unit_tests &&
./prepare_build.sh &&
cd build &&
make -j8 &&
./aquamarine_ut
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows build check
name: Windows build

on:
pull_request:
Expand Down

0 comments on commit a38a2f0

Please sign in to comment.