mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 19:36:29 +01:00
github build.yml: try to fix the tag fetch issue (private working dirs)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
17612386e0
commit
bcacde5109
1 changed files with 18 additions and 2 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -18,8 +18,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: alsa-project/alsa-lib
|
repository: alsa-project/alsa-lib
|
||||||
ref: master
|
ref: master
|
||||||
|
path: alsa-lib
|
||||||
- name: Configure alsa-lib
|
- name: Configure alsa-lib
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-lib
|
||||||
libtoolize --force --copy --automake
|
libtoolize --force --copy --automake
|
||||||
aclocal
|
aclocal
|
||||||
autoheader
|
autoheader
|
||||||
|
@ -30,18 +32,24 @@ jobs:
|
||||||
echo "Version: $(cat version)"
|
echo "Version: $(cat version)"
|
||||||
- name: Build alsa-lib
|
- name: Build alsa-lib
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-lib
|
||||||
make
|
make
|
||||||
- name: Install alsa-lib
|
- name: Install alsa-lib
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-lib
|
||||||
make install
|
make install
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: alsa-utils
|
||||||
- name: Checkout all tags
|
- name: Checkout all tags
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
git fetch --prune --unshallow
|
git fetch --prune --unshallow
|
||||||
- name: Modify version
|
- name: Modify version
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
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//')
|
||||||
echo "Version: ${version}"
|
echo "Version: ${version}"
|
||||||
|
@ -50,6 +58,7 @@ jobs:
|
||||||
grep AC_INIT configure.ac
|
grep AC_INIT configure.ac
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
aclocal
|
aclocal
|
||||||
gettextize -c -f --no-changelog
|
gettextize -c -f --no-changelog
|
||||||
aclocal -I m4
|
aclocal -I m4
|
||||||
|
@ -61,29 +70,36 @@ jobs:
|
||||||
echo "Version: $(cat version)"
|
echo "Version: $(cat version)"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
make
|
make
|
||||||
- name: Install test
|
- name: Install test
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
make install
|
make install
|
||||||
- name: Create package
|
- name: Create package
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
make dist-bzip2
|
make dist-bzip2
|
||||||
- name: Unpack package
|
- name: Unpack package
|
||||||
run: |
|
run: |
|
||||||
tar xjf alsa-utils-$(cat version).tar.bz2
|
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
cp alsa-utils-$(cat version).tar.bz2 artifacts
|
cd alsa-utils
|
||||||
|
tar xjf alsa-utils-$(cat version).tar.bz2
|
||||||
|
cp alsa-utils-$(cat version).tar.bz2 ../artifacts
|
||||||
- name: Configure package
|
- name: Configure package
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
cd alsa-utils-$(cat version)
|
cd alsa-utils-$(cat version)
|
||||||
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
||||||
./configure
|
./configure
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
cd alsa-utils-$(cat version)
|
cd alsa-utils-$(cat version)
|
||||||
make
|
make
|
||||||
- name: Install package
|
- name: Install package
|
||||||
run: |
|
run: |
|
||||||
|
cd alsa-utils
|
||||||
cd alsa-utils-$(cat version)
|
cd alsa-utils-$(cat version)
|
||||||
make install
|
make install
|
||||||
- name: Archive package
|
- name: Archive package
|
||||||
|
|
Loading…
Reference in a new issue