Skip to content

Commit 31cf521

Browse files
committed
test -std=c99 and -std=c17
new file: linuxc99meson.yml
1 parent 4569ad2 commit 31cf521

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
3+
name: linuxc99meson
4+
5+
on:
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
13+
linuxc99meson:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install meson / ninja
18+
run: |
19+
sudo apt-get -qq update
20+
sudo apt install build-essential meson ninja-build python3-pip python3-setuptools
21+
pip3 install --upgrade pip
22+
pip3 install meson --user
23+
- name: Install doxygen
24+
run: |
25+
sudo apt install doxygen
26+
- name: Build libdwarf
27+
run: |
28+
mkdir builddir && cd builddir
29+
CFLAGS="-std=c99" meson setup -Ddwarfexample=true . ..
30+
ninja
31+
ninja test
32+
linuxc17meson:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install meson / ninja
37+
run: |
38+
sudo apt-get -qq update
39+
sudo apt install build-essential meson ninja-build python3-pip python3-setuptools
40+
pip3 install --upgrade pip
41+
pip3 install meson --user
42+
- name: Install doxygen
43+
run: |
44+
sudo apt install doxygen
45+
- name: Build libdwarf
46+
run: |
47+
mkdir builddir && cd builddir
48+
CFLAGS="-std=c17" meson setup -Ddwarfexample=true . ..
49+
ninja
50+
ninja test
51+

0 commit comments

Comments
 (0)