Skip to content

GitHub/Actions: Add a workflow running gbs Tizen build #22

GitHub/Actions: Add a workflow running gbs Tizen build

GitHub/Actions: Add a workflow running gbs Tizen build #22

name: Native build in Ubuntu 20.04/22.04 with GCC-13
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
BUILD_DIR: build
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
steps:
- uses: actions/checkout@v4
- name: add a PPA for gcc-13
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- name: install gcc-13
run: sudo apt-get update && sudo apt-get install -y gcc-13 g++-13
- name: install the meson and ninja build systems
run: python3 -m pip install meson ninja
- name: install build requirements
run: |
sudo apt-get install -y libunwind-dev libgstreamer1.0-dev libsystemd-dev \
libjson-glib-dev
- run: meson setup $BUILD_DIR
env:
CC: gcc-13
CXX: g++-13
- run: meson compile -C $BUILD_DIR
# TODO: Add compile time unit testing