signal_connect: Simplify ambiguity removal when compiling with MSVC #5
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-19: 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: gcc" | |
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 ENV DEBIAN_FRONTEND=noninteractive | |
sudo apt update | |
sudo apt install libxml2-utils docbook5-xml docbook-xsl mm-common g++ ninja-build python3-setuptools python3-pip --yes | |
# Ubuntu 22.04 contains meson 0.61.2, but libsigc++ requires meson >= 0.62.0. | |
# Install it with pip instead of apt. | |
sudo pip install "meson>=0.62.0" | |
export CXX=g++ | |
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 CXX again. | |
export CXX=g++ | |
cd _build | |
meson dist |