summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-02-18 20:40:48 +0100
committerJaroslav Kysela <perex@perex.cz>2020-02-18 20:57:47 +0100
commitbcacde51097f72cda17a580be2ce1e302e1c5828 (patch)
treeb03c971c812db6fb7754276a11d47e4777caf275 /.github
parent17612386e0fa4f29f3ddb4b4441192d31e9585fc (diff)
downloadalsa-utils-bcacde51097f72cda17a580be2ce1e302e1c5828.tar.gz
github build.yml: try to fix the tag fetch issue (private working dirs)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml20
1 files 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