From bcacde51097f72cda17a580be2ce1e302e1c5828 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 18 Feb 2020 20:40:48 +0100 Subject: [PATCH] github build.yml: try to fix the tag fetch issue (private working dirs) Signed-off-by: Jaroslav Kysela --- .github/workflows/build.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd46646..3c29349 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,8 +18,10 @@ jobs: with: repository: alsa-project/alsa-lib ref: master + path: alsa-lib - name: Configure alsa-lib run: | + cd alsa-lib libtoolize --force --copy --automake aclocal autoheader @@ -30,18 +32,24 @@ jobs: echo "Version: $(cat version)" - name: Build alsa-lib run: | + cd alsa-lib make - name: Install alsa-lib run: | + cd alsa-lib make install - name: Checkout uses: actions/checkout@v2 + with: + path: alsa-utils - name: Checkout all tags run: | + cd alsa-utils git fetch --prune --unshallow - name: Modify version run: | + cd alsa-utils mv configure.ac configure.ac.old version=$(git describe | sed -e 's/v//') echo "Version: ${version}" @@ -50,6 +58,7 @@ jobs: grep AC_INIT configure.ac - name: Configure run: | + cd alsa-utils aclocal gettextize -c -f --no-changelog aclocal -I m4 @@ -61,29 +70,36 @@ jobs: echo "Version: $(cat version)" - name: Build run: | + cd alsa-utils make - name: Install test run: | + cd alsa-utils make install - name: Create package run: | + cd alsa-utils make dist-bzip2 - name: Unpack package run: | - tar xjf alsa-utils-$(cat version).tar.bz2 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 run: | + cd alsa-utils cd alsa-utils-$(cat version) export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g" ./configure - name: Build package run: | + cd alsa-utils cd alsa-utils-$(cat version) make - name: Install package run: | + cd alsa-utils cd alsa-utils-$(cat version) make install - name: Archive package