Skip to content

Commit 9c12914

Browse files
committed
Now testing autotools, meson, cmake using
CFLAGS="-std=c99" and c17. modified: test.yml
1 parent 31cf521 commit 9c12914

File tree

1 file changed

+66
-1
lines changed

1 file changed

+66
-1
lines changed

.github/workflows/test.yml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,33 @@ jobs:
6666
cmake -G "Unix Makefiles" -DDO_TESTING=ON -DBUILD_DWARFEXAMPLE=ON ../CMakeLists.txt
6767
make
6868
ctest -R self
69-
69+
linuxc99cmake:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
- name: Install cmake
74+
run: |
75+
sudo apt-get -qq update
76+
sudo apt install build-essential cmake
77+
- name: Build libdwarf
78+
run: |
79+
mkdir builddir && cd builddir
80+
CFLAGS="-std=c99" cmake -G "Unix Makefiles" -DDO_TESTING=ON -DBUILD_DWARFEXAMPLE=ON ../CMakeLists.txt
81+
make
82+
ctest -R self
83+
linuxc17make:
84+
runs-on: ubuntu-latest
85+
steps:
86+
- uses: actions/checkout@v4
87+
- name: Install cmake
88+
run: |
89+
sudo apt-get -qq update
90+
sudo apt install build-essential cmake
91+
- name: Build libdwarf
92+
run: |
93+
mkdir builddir && cd builddir
94+
CFLAGS="-std=c17" cmake -G "Unix Makefiles" -DDO_TESTING=ON -DBUILD_DWARFEXAMPLE=ON ../CMakeLists.txt
95+
make
7096
linux_meson:
7197
runs-on: ubuntu-latest
7298
steps:
@@ -86,6 +112,45 @@ jobs:
86112
meson setup -Ddwarfexample=true . ..
87113
ninja
88114
ninja test
115+
linuxc99meson:
116+
runs-on: ubuntu-latest
117+
steps:
118+
- uses: actions/checkout@v4
119+
- name: Install meson / ninja
120+
run: |
121+
sudo apt-get -qq update
122+
sudo apt install build-essential meson ninja-build python3-pip python3-setuptools
123+
pip3 install --upgrade pip
124+
pip3 install meson --user
125+
- name: Install doxygen
126+
run: |
127+
sudo apt install doxygen
128+
- name: Build libdwarf
129+
run: |
130+
mkdir builddir && cd builddir
131+
CFLAGS="-std=c99" meson setup -Ddwarfexample=true . ..
132+
ninja
133+
ninja test
134+
linuxc17meson:
135+
runs-on: ubuntu-latest
136+
steps:
137+
- uses: actions/checkout@v4
138+
- name: Install meson / ninja
139+
run: |
140+
sudo apt-get -qq update
141+
sudo apt install build-essential meson ninja-build python3-pip python3-setuptools
142+
pip3 install --upgrade pip
143+
pip3 install meson --user
144+
- name: Install doxygen
145+
run: |
146+
sudo apt install doxygen
147+
- name: Build libdwarf
148+
run: |
149+
mkdir builddir && cd builddir
150+
CFLAGS="-std=c17" meson setup -Ddwarfexample=true . ..
151+
ninja
152+
ninja test
153+
89154
90155
freebsd_autotools:
91156
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)