| 1 | name: Build |
| 2 | on: [push, pull_request] |
| 3 | concurrency: |
| 4 | group: ${{ github.workflow }}-${{ github.ref }} |
| 5 | cancel-in-progress: true |
| 6 | jobs: |
| 7 | make-check: |
| 8 | runs-on: ubuntu-latest |
| 9 | container: fedora:latest |
| 10 | permissions: |
| 11 | contents: read |
| 12 | env: |
| 13 | CFLAGS: -Wall -Wextra -Werror -Wno-sign-compare -Wno-unused-parameter -ggdb3 |
| 14 | steps: |
| 15 | - uses: actions/checkout@v4 |
| 16 | - name: Install dependencies |
| 17 | run: | |
| 18 | scripts/auto install-build-deps |
| 19 | - run: autoreconf -if && ./configure --enable-silent-rules |
| 20 | - run: make |
| 21 | - run: make check |
| 22 | - run: make distcheck |
| 23 | - name: Check translations |
| 24 | run: | |
| 25 | if [ -s "translations.log" ]; then |
| 26 | cat translations.log |
| 27 | exit 1 |
| 28 | else |
| 29 | echo "All translations compiled successfully." |
| 30 | exit 0 |
| 31 | fi |