Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub/Actions: Add an action building the project with GCC-13/Ubuntu #24

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ubuntu_gcc_native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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