Skip to content

Commit

Permalink
Added macos build.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Oct 22, 2023
1 parent 212c2e2 commit 080136c
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/macos_13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: MacOS 13

on:
push:
branches: ["main", "devel", "macos"]
pull_request:
branches: ["main"]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug

jobs:
ubuntu:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-13

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Brew Dependencies
run: |
brew install
cmake
llvm@16
boost
git
python3
openssl@3
cryptopp
curl
ninja
make
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} -G"Ninja" -DNUI_ENABLE_TESTS=on -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DNUI_BUILD_EXAMPLES=on -DCMAKE_CXX_EXTENSIONS=on -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm@16/bin/clang++ -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm@16/bin/clang -DNUI_NPM=npm -DNUI_NODE=node -DCMAKE_CXX_STANDARD=20
env:
LDFLAGS: "-L/opt/homebrew/lib"
CPPFLAGS: "-I/opt/homebrew/include"
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

- name: Build
run: cmake --build ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}} --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build/clang_${{env.BUILD_TYPE}}
run: ./tests/nui-tests

0 comments on commit 080136c

Please sign in to comment.