From 39aeb141ab9338fcdc179e46faed5adbcb125a17 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 24 May 2022 16:30:00 +0300 Subject: [PATCH] Main: fix and test distribution --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ Makefile.am | 12 ++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75b1c32..db184b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,6 +30,31 @@ jobs: - name: install run: sudo make install + dist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: autogen + run: ./autogen.sh + - name: configure dist + run: ./configure + - name: dist + run: make dist + - name: extract + run: tar -xzf libkernaux-0.1.0.tar.gz + - working-directory: libkernaux-0.1.0 + name: configure + run: ./configure --enable-tests-all + - working-directory: libkernaux-0.1.0 + name: make + run: make + - working-directory: libkernaux-0.1.0 + name: check + run: make check || (cat test-suite.log && false) + - working-directory: libkernaux-0.1.0 + name: install + run: sudo make install + cppcheck: runs-on: ubuntu-latest steps: diff --git a/Makefile.am b/Makefile.am index c4c4d0c..3e4afdc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -132,10 +132,6 @@ TESTS += \ examples/snprintf_va if ENABLE_TESTS_PYTHON TESTS += tests/test_printf_gen -noinst_SCRIPTS = tests/printf_gen.py -noinst_DATA = \ - tests/printf.yml \ - tests/printf_orig.yml endif endif endif @@ -271,11 +267,15 @@ tests_test_pfa_assert_SOURCES = \ tests_test_printf_gen_SOURCES = \ $(libkernaux_a_SOURCES) \ - tests/test_printf_gen.c + tests/test_printf_gen.c \ + tests/printf_gen.py \ + tests/printf_gen.jinja \ + tests/printf.yml \ + tests/printf_orig.yml tests_test_units_human_SOURCES = \ $(libkernaux_a_SOURCES) \ tests/test_units_human.c -tests/test_printf_gen.c: tests/printf_gen.py tests/printf.yml tests/printf_orig.yml +tests/test_printf_gen.c: tests/printf_gen.py tests/printf_gen.jinja tests/printf.yml tests/printf_orig.yml python3 tests/printf_gen.py