Meson builds: Embed UAC manifest for dom_update_namespace #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2024-07-15: ubuntu-latest = ubuntu-22.04 | |
# See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories | |
name: "Meson: clang" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build | |
run: | | |
# Prevent blocking apt install on a question during configuring of tzdata. | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt update | |
sudo apt install libxml2-dev libxml2-utils docbook5-xml docbook-xsl mm-common clang ninja-build python3-setuptools python3-pip --yes | |
# Ubuntu 22.04 contains meson 0.61.2, but libxml++ requires meson >= 0.62.0. | |
# Install it with pip instead of apt. | |
sudo pip install "meson>=0.62.0" | |
export CC=clang | |
export CXX=clang++ | |
meson setup -Dwarnings=fatal -Dwarning_level=3 -Dwerror=true _build | |
cd _build | |
meson compile | |
- name: Test | |
run: | | |
cd _build | |
meson test | |
- name: Dist | |
run: | | |
sudo apt install git --yes | |
# dist runs setup again so we need to specify CC and CXX again. | |
export CC=clang | |
export CXX=clang++ | |
cd _build | |
meson dist |