From 3ba8eedcc3df134c4a52d16b5c929548ef80b3b1 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 13 Jun 2022 15:05:47 +0300 Subject: [PATCH] Add file "VERSION" (#51) --- .github/workflows/main.yml | 22 +++++++++------------- VERSION | 1 + configure.ac | 2 +- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 VERSION diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e57ce4..17b2a7c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,19 +62,15 @@ jobs: - name: dist run: make dist - name: extract - run: tar -xzf libkernaux-0.3.0.tar.gz - - working-directory: libkernaux-0.3.0 - name: configure - run: ./configure --enable-tests --enable-tests-python - - working-directory: libkernaux-0.3.0 - name: make - run: make - - working-directory: libkernaux-0.3.0 - name: check - run: make check || (./test-suite-log && false) - - working-directory: libkernaux-0.3.0 - name: install - run: sudo make install + run: tar -xzf "libkernaux-$(cat VERSION).tar.gz" + - name: configure + run: cd "libkernaux-$(cat VERSION)" && ./configure --enable-tests --enable-tests-python + - name: make + run: cd "libkernaux-$(cat VERSION)" && make + - name: check + run: cd "libkernaux-$(cat VERSION)" && make check || (./test-suite-log && false) + - name: install + run: cd "libkernaux-$(cat VERSION)" && sudo make install cppcheck: runs-on: ubuntu-latest diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..0d91a54 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.3.0 diff --git a/configure.ac b/configure.ac index 7ebacbf..3a3deaf 100644 --- a/configure.ac +++ b/configure.ac @@ -12,7 +12,7 @@ LT_PREREQ([2.4.6]) ####################### AC_INIT([libkernaux], - [0.3.0], + m4_normalize(m4_include([VERSION])), [https://github.com/tailix/libkernaux/issues], [libkernaux], [https://github.com/tailix/libkernaux])