Skip to content

Commit ef0a113

Browse files
authored
Merge branch 'libsigcplusplus:master' into zig-pkg
2 parents a64b032 + 793d066 commit ef0a113

25 files changed

+615
-42
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "CI: autotools: clang 10"
1+
name: "Autotools: clang"
22

33
on: [push]
44

55
jobs:
66
build:
77

8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v1
@@ -14,14 +14,14 @@ jobs:
1414
# Prevent blocking apt install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install mm-common clang-10 make docbook-xsl --yes
18-
export CC=clang-10 CXX=clang++-10
17+
sudo apt install mm-common clang make docbook-xsl --yes
18+
export CC=clang CXX=clang++
1919
./autogen.sh --enable-warnings=fatal
2020
make
2121
- name: Test
2222
run: make check
2323
- name: Distcheck
2424
run: |
2525
# distcheck runs configure again so we need to specify CC and CXX again.
26-
export CC=clang-10 CXX=clang++-10
26+
export CC=clang CXX=clang++
2727
make distcheck
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
name: "CI: autotools: gcc 10"
1+
name: "Autotools: gcc"
22

33
on: [push]
44

55
jobs:
66
build:
77

8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v1
1212
- name: Build
1313
run: |
14+
# Prevent blocking apt install on a question during configuring of tzdata.
15+
export ENV DEBIAN_FRONTEND=noninteractive
1416
sudo apt update
15-
sudo apt install mm-common g++-10 docbook-xsl
16-
export CXX=g++-10
17+
sudo apt install mm-common g++ make docbook-xsl --yes
18+
export CXX=g++
1719
./autogen.sh --enable-warnings=fatal
1820
make
1921
- name: Test
2022
run: make check
2123
- name: Distcheck
2224
run: |
2325
# distcheck runs configure again so we need to specify CXX again.
24-
export CXX=g++-10
26+
export CXX=g++
2527
make distcheck

.github/workflows/clang-format-check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
name: "CI: Check Code Formatting"
1+
name: "Check Code Formatting"
22

3-
on: [push]
3+
# Triggered manually
4+
on: [workflow_dispatch]
45

56
jobs:
67
build:
@@ -14,5 +15,5 @@ jobs:
1415
# Prevent blocking the install on a question during configuring of tzdata.
1516
export ENV DEBIAN_FRONTEND=noninteractive
1617
sudo apt update
17-
sudo apt install clang-format-12 --yes
18-
clang-format-12 --dry-run --Werror `find . -name "*.h" -or -name "*.cc"`
18+
sudo apt install clang-format --yes
19+
clang-format --dry-run --Werror `find . -name "*.h" -or -name "*.cc"`

.github/workflows/cmake-msvc.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: "CI: cmake: msvc 2019"
1+
name: "CMake: MSVC"
22

3-
on: [push]
3+
# Triggered manually
4+
on: [workflow_dispatch]
45

56
jobs:
67
build:
78

8-
runs-on: windows-2019
9+
runs-on: windows-latest
910

1011
steps:
1112
- uses: actions/checkout@v1

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI: cmake"
1+
name: "CMake: gcc"
22

33
on: [push]
44

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "meson: gcc 10"
1+
name: "Meson: clang"
22

33
on: [push]
44

55
jobs:
66
build:
77

8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v1
@@ -14,11 +14,8 @@ jobs:
1414
# Prevent blocking apt install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install libxml2-utils docbook5-xml docbook-xsl mm-common g++-10 ninja-build python3-setuptools python3-pip --yes
18-
# Ubuntu 20.04 contains meson 0.53.2, but libsigc++ requires meson >= 0.55.0.
19-
# Install it with pip3 instead of apt.
20-
sudo pip3 install "meson>=0.55.0"
21-
export CXX=g++-10
17+
sudo apt install libxml2-utils docbook5-xml docbook-xsl mm-common clang meson ninja-build python3-setuptools --yes
18+
export CXX=clang++
2219
meson setup -Dwarnings=fatal -Dwarning_level=3 -Dwerror=true _build
2320
cd _build
2421
meson compile
@@ -30,6 +27,6 @@ jobs:
3027
run: |
3128
sudo apt install git --yes
3229
# dist runs setup again so we need to specify CXX again.
33-
export CXX=g++-10
30+
export CXX=clang++
3431
cd _build
3532
meson dist
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "meson: clang 10"
1+
name: "Meson: gcc"
22

33
on: [push]
44

55
jobs:
66
build:
77

8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v1
@@ -14,11 +14,8 @@ jobs:
1414
# Prevent blocking apt install on a question during configuring of tzdata.
1515
export ENV DEBIAN_FRONTEND=noninteractive
1616
sudo apt update
17-
sudo apt install libxml2-utils docbook5-xml docbook-xsl mm-common clang-10 ninja-build python3-setuptools python3-pip --yes
18-
# Ubuntu 20.04 contains meson 0.53.2, but libsigc++ requires meson >= 0.55.0.
19-
# Install it with pip3 instead of apt.
20-
sudo pip3 install "meson>=0.55.0"
21-
export CXX=clang++-10
17+
sudo apt install libxml2-utils docbook5-xml docbook-xsl mm-common g++ meson ninja-build python3-setuptools --yes
18+
export CXX=g++
2219
meson setup -Dwarnings=fatal -Dwarning_level=3 -Dwerror=true _build
2320
cd _build
2421
meson compile
@@ -30,6 +27,6 @@ jobs:
3027
run: |
3128
sudo apt install git --yes
3229
# dist runs setup again so we need to specify CXX again.
33-
export CXX=clang++-10
30+
export CXX=g++
3431
cd _build
3532
meson dist

.github/workflows/meson-msvc.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Meson: MSVC"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.x'
15+
- run: pip install meson ninja
16+
17+
- name: Prepare MSVC
18+
uses: bus1/cabuild/action/msdevshell@v1
19+
with:
20+
architecture: x64
21+
22+
- name: Configure
23+
# Don't use warning_level or werror. They are applied also to subprojects.
24+
# 2023-07-28: Why is the documentation not built?
25+
# With the latest fixes in mm-common and libsigc++ it's possible
26+
# to build the reference documentation, but it's error-prone to build
27+
# the manual. AFAIK there are no easily installable docbook5-xml and
28+
# docbook-xsl packages for Windows.
29+
run: meson setup -Dwarnings=fatal -Dmaintainer-mode=false -Dbuild-documentation=false _build
30+
31+
- name: Compile
32+
run: meson compile -C _build
33+
34+
- name: Test
35+
run: meson test -C _build

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# Copied from https://github.com/libsigcplusplus/libsigcplusplus/actions/new
44
# and changed. Actions -> New workflow -> Pages -> GitHub Pages Jekyll
55

6-
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
6+
name: Publish docs
77

8-
# 2022-12-17: ubuntu-latest = ubuntu-22.04
8+
# 2023-07-28: ubuntu-latest = ubuntu-22.04
99
on:
1010
# Runs on pushes targeting the default branch
1111
push:

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ AS_IF([test "x$enable_benchmark" = xyes],[
7474
])
7575

7676
AC_SUBST(MSVC_STATIC_CXXFLAG, '')
77+
AC_SUBST(DOXYGEN_HAVE_DOT, [YES])
78+
AM_SUBST_NOTMAKE(DOXYGEN_HAVE_DOT)
7779

7880
AC_CONFIG_FILES([Makefile
7981
${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in

0 commit comments

Comments
 (0)