Skip to content

build: update actions #106

build: update actions

build: update actions #106

Workflow file for this run

name: Build and Test
on: [push]
jobs:
Validate-Format:
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'src'
- 'include'
- 'bench'
- 'test'
- 'rttest'
- 'examples'
steps:
- uses: actions/checkout@v4
- name: Check code format against formatting rules
uses: jidicula/[email protected]
with:
clang-format-version: '16'
check-path: ${{ matrix.path }}
Validate-Source:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Build Project
run: |
sudo apt install meson zsh
make -f Makefile.Maintainer builddir
cd builddir
meson compile
- name: Check source for avoidable mistakes
run: |
make -f Makefile.Maintainer exportedsymbols
python3 meta/validate-source.py .
Plain-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson setup builddir
- name: Compile
working-directory: builddir
run: |
ninja
With-Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson builddir -Dwith-tests=true --buildtype=debugoptimized
- name: Compile
working-directory: builddir
run: |
ninja
- name: Run tests
working-directory: builddir
run: |
ninja test
Test-Install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install meson
run: |
sudo apt install meson
- name: Build
run: |
meson --prefix=$RUNNER_TEMP builddir
- name: Compile and install
working-directory: builddir
run: |
ninja
PREFIX=$RUNNER_TEMP ninja install
- name: Run post-install tests
run: |
PREFIX=$RUNNER_TEMP PKG_CONFIG_PATH=$RUNNER_TEMP/lib/x86_64-linux-gnu/pkgconfig LD_LIBRARY_PATH=$RUNNER_TEMP/lib/x86_64-linux-gnu make -C rttest check