2020-02-18 15:28:00 +01:00
|
|
|
name: Build alsa-utils
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
fedora_latest_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: fedora:latest
|
|
|
|
steps:
|
|
|
|
- name: Prepare environment
|
|
|
|
run: |
|
|
|
|
dnf -y upgrade
|
|
|
|
dnf -y install @development-tools libtool bzip2 gettext-devel ncurses-devel
|
|
|
|
|
|
|
|
- name: Checkout alsa-lib
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: alsa-project/alsa-lib
|
|
|
|
ref: master
|
2020-02-18 20:40:48 +01:00
|
|
|
path: alsa-lib
|
2020-02-18 15:28:00 +01:00
|
|
|
- name: Configure alsa-lib
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-lib
|
2020-02-18 15:28:00 +01:00
|
|
|
libtoolize --force --copy --automake
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --foreign --copy --add-missing
|
|
|
|
autoconf
|
|
|
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
|
|
|
./configure
|
|
|
|
echo "Version: $(cat version)"
|
|
|
|
- name: Build alsa-lib
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-lib
|
2020-02-18 15:28:00 +01:00
|
|
|
make
|
|
|
|
- name: Install alsa-lib
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-lib
|
2020-02-18 15:28:00 +01:00
|
|
|
make install
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2020-02-18 20:40:48 +01:00
|
|
|
with:
|
|
|
|
path: alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
- name: Checkout all tags
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-03-11 09:58:31 +01:00
|
|
|
git fetch --prune --tags
|
2020-02-18 15:28:00 +01:00
|
|
|
git fetch --prune --unshallow
|
|
|
|
- name: Modify version
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
mv configure.ac configure.ac.old
|
|
|
|
version=$(git describe | sed -e 's/v//')
|
2020-02-19 11:01:40 +01:00
|
|
|
if test -z "$version"; then version=$(git describe --tags | sed -e 's/v//'); fi
|
2020-02-18 15:28:00 +01:00
|
|
|
echo "Version: ${version}"
|
|
|
|
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
|
|
|
|
grep AC_INIT configure.ac
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
aclocal
|
|
|
|
gettextize -c -f --no-changelog
|
2022-05-03 13:33:14 +02:00
|
|
|
libtoolize --force --copy --automake
|
2020-02-18 15:28:00 +01:00
|
|
|
aclocal -I m4
|
|
|
|
autoheader
|
|
|
|
automake --foreign --copy --add-missing
|
|
|
|
autoconf
|
|
|
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
|
|
|
./configure
|
|
|
|
echo "Version: $(cat version)"
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
make
|
|
|
|
- name: Install test
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
make install
|
|
|
|
- name: Create package
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
make dist-bzip2
|
|
|
|
- name: Unpack package
|
|
|
|
run: |
|
|
|
|
mkdir artifacts
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
|
|
|
tar xjf alsa-utils-$(cat version).tar.bz2
|
|
|
|
cp alsa-utils-$(cat version).tar.bz2 ../artifacts
|
2020-02-18 15:28:00 +01:00
|
|
|
- name: Configure package
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
cd alsa-utils-$(cat version)
|
|
|
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
|
|
|
./configure
|
|
|
|
- name: Build package
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
cd alsa-utils-$(cat version)
|
|
|
|
make
|
|
|
|
- name: Install package
|
|
|
|
run: |
|
2020-02-18 20:40:48 +01:00
|
|
|
cd alsa-utils
|
2020-02-18 15:28:00 +01:00
|
|
|
cd alsa-utils-$(cat version)
|
|
|
|
make install
|
|
|
|
- name: Archive package
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: alsa-utils-test-package
|
|
|
|
path: artifacts/
|
|
|
|
|
|
|
|
ubuntu_last_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
steps:
|
|
|
|
- name: Prepare
|
|
|
|
run: |
|
2020-06-02 13:05:06 +02:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2020-02-18 15:28:00 +01:00
|
|
|
apt-get update
|
|
|
|
apt-get -y install apt-utils
|
|
|
|
apt-get -y full-upgrade
|
|
|
|
apt-get install -y git build-essential pkg-config m4 autoconf automake libtool gettext ncurses-dev
|
|
|
|
|
|
|
|
- name: Checkout alsa-lib
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: alsa-project/alsa-lib
|
|
|
|
ref: master
|
|
|
|
- name: Configure alsa-lib
|
|
|
|
run: |
|
|
|
|
libtoolize --force --copy --automake
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --foreign --copy --add-missing
|
|
|
|
autoconf
|
|
|
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
|
|
|
./configure
|
|
|
|
- name: Build alsa-lib
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: Install alsa-lib
|
|
|
|
run: |
|
|
|
|
make install
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
|
|
|
mv configure.ac configure.ac.old
|
|
|
|
sed -e 's;po/Makefile.in;;' < configure.ac.old > configure.ac
|
|
|
|
aclocal
|
|
|
|
gettextize -c -f --no-changelog
|
2022-05-03 13:33:14 +02:00
|
|
|
libtoolize --force --copy --automake
|
2020-02-18 15:28:00 +01:00
|
|
|
aclocal -I m4
|
|
|
|
autoheader
|
|
|
|
automake --foreign --copy --add-missing
|
|
|
|
autoconf
|
|
|
|
export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g"
|
|
|
|
./configure
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
make install
|