Skip to content
66 changes: 66 additions & 0 deletions .github/workflows/native_rialto_build_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# If not stated otherwise in this file or this component's LICENSE file the
# following copyright and licenses apply:
#
# Copyright 2024 Sky UK
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: Native Rialto Build on macOS

on:
pull_request:
branches: [ "master", "rdkcentral:master" ]
push:
branches: [ "master", "rdkcentral:master" ]
workflow_dispatch:

jobs:
build:
runs-on: macos-13

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

- name: Install Dependencies
run: |
brew install cmake
brew install protobuf
brew install glib
brew install gstreamer

- name: Build Rialto
run: |
cmake . -B build -DNATIVE_BUILD=ON -DRIALTO_BUILD_TYPE="Debug" >> output_file.txt 2>&1
if [ $? -eq 0 ]
then
make -C build >> output_file.txt 2>&1
else
exit 1
fi

- name: Report Build Status Success
if: success()
run: |
echo "Build Succeeded!"
exit 0

- name: Upload Logs on Failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: Output Logs
path: |
output_file.txt