mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 13:36:31 +01:00
github: update build.yml
- use actions/checkout@v3 - improve code to generate a specific git version Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
5201ec026d
commit
9b95d9b20a
1 changed files with 7 additions and 4 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
||||||
dnf -y install @development-tools libtool bzip2 gettext-devel ncurses-devel
|
dnf -y install @development-tools libtool bzip2 gettext-devel ncurses-devel
|
||||||
|
|
||||||
- name: Checkout alsa-lib
|
- name: Checkout alsa-lib
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: alsa-project/alsa-lib
|
repository: alsa-project/alsa-lib
|
||||||
ref: master
|
ref: master
|
||||||
|
@ -22,6 +22,7 @@ jobs:
|
||||||
- name: Configure alsa-lib
|
- name: Configure alsa-lib
|
||||||
run: |
|
run: |
|
||||||
cd alsa-lib
|
cd alsa-lib
|
||||||
|
head -5 configure.ac
|
||||||
libtoolize --force --copy --automake
|
libtoolize --force --copy --automake
|
||||||
aclocal
|
aclocal
|
||||||
autoheader
|
autoheader
|
||||||
|
@ -40,7 +41,7 @@ jobs:
|
||||||
make install
|
make install
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: alsa-utils
|
path: alsa-utils
|
||||||
- name: Checkout all tags
|
- name: Checkout all tags
|
||||||
|
@ -54,6 +55,7 @@ jobs:
|
||||||
mv configure.ac configure.ac.old
|
mv configure.ac configure.ac.old
|
||||||
version=$(git describe | sed -e 's/v//')
|
version=$(git describe | sed -e 's/v//')
|
||||||
if test -z "$version"; then version=$(git describe --tags | sed -e 's/v//'); fi
|
if test -z "$version"; then version=$(git describe --tags | sed -e 's/v//'); fi
|
||||||
|
if test -z "$version"; then version1=$(cat configure.ac.old | grep "AC_INIT(.*)" | cut -d ' ' -f 2 | sed -e 's/)//'); version2=$(git rev-parse --short HEAD); version="${version1}-g${version2}"; fi
|
||||||
echo "Version: ${version}"
|
echo "Version: ${version}"
|
||||||
sed -r "s/AC_INIT\(alsa-utils,.*\)/AC_INIT(alsa-utils, ${version})/" < configure.ac.old > configure.ac.tmp
|
sed -r "s/AC_INIT\(alsa-utils,.*\)/AC_INIT(alsa-utils, ${version})/" < configure.ac.old > configure.ac.tmp
|
||||||
sed -e 's;po/Makefile.in;;' < configure.ac.tmp > configure.ac
|
sed -e 's;po/Makefile.in;;' < configure.ac.tmp > configure.ac
|
||||||
|
@ -61,6 +63,7 @@ jobs:
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cd alsa-utils
|
cd alsa-utils
|
||||||
|
head -5 configure.ac
|
||||||
aclocal
|
aclocal
|
||||||
gettextize -c -f --no-changelog
|
gettextize -c -f --no-changelog
|
||||||
libtoolize --force --copy --automake
|
libtoolize --force --copy --automake
|
||||||
|
@ -125,7 +128,7 @@ jobs:
|
||||||
apt-get install -y git build-essential pkg-config m4 autoconf automake libtool gettext ncurses-dev
|
apt-get install -y git build-essential pkg-config m4 autoconf automake libtool gettext ncurses-dev
|
||||||
|
|
||||||
- name: Checkout alsa-lib
|
- name: Checkout alsa-lib
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: alsa-project/alsa-lib
|
repository: alsa-project/alsa-lib
|
||||||
ref: master
|
ref: master
|
||||||
|
@ -146,7 +149,7 @@ jobs:
|
||||||
make install
|
make install
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
mv configure.ac configure.ac.old
|
mv configure.ac configure.ac.old
|
||||||
|
|
Loading…
Reference in a new issue