Skip to content

Commit

Permalink
ci: check public headers compile with c89 pedantic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
64 committed Oct 17, 2024
1 parent 2c73594 commit 29055aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
- name: Build mlibc
run: 'xbstrap install ${{matrix.builds}}'
working-directory: build/
- name: Check public headers conform to C89
working-directory: build/
run: |
tree
printf -- '-include\0%s\0' pkg-builds/${{matrix.builds}}/public-headers/usr/local/include/**.h | \
xargs -0 gcc -x c -S /dev/null -o /dev/null -I pkg-builds/${{matrix.builds}}/public-headers/usr/local/include -nostdlib -std=c89 -Wpedantic -Werror
- name: Test mlibc
run: 'meson test -v -C pkg-builds/${{matrix.builds}}'
working-directory: build/
Expand Down

0 comments on commit 29055aa

Please sign in to comment.