1name: Build alsa-lib 2 3on: [push, pull_request] 4 5jobs: 6 fedora_latest_build: 7 runs-on: ubuntu-latest 8 container: 9 image: fedora:latest 10 steps: 11 - name: Prepare environment 12 run: | 13 dnf -y upgrade 14 dnf -y install @development-tools libtool bzip2 15 - name: Checkout 16 uses: actions/checkout@v2 17 - name: Checkout all tags 18 run: | 19 git fetch --prune --unshallow 20 - name: Modify version 21 run: | 22 mv configure.ac configure.ac.old 23 version=$(git describe | sed -e 's/v//') 24 echo "Version: ${version}" 25 sed -r "s/AC_INIT\(alsa-lib,.*\)/AC_INIT(alsa-lib, ${version})/" < configure.ac.old > configure.ac 26 grep AC_INIT configure.ac 27 - name: Configure 28 run: | 29 libtoolize --force --copy --automake 30 aclocal 31 autoheader 32 automake --foreign --copy --add-missing 33 autoconf 34 export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g" 35 ./configure --disable-aload 36 echo "Version: $(cat version)" 37 - name: Build 38 run: | 39 make 40 - name: Install 41 run: | 42 make install 43 - name: Create package 44 run: | 45 make dist-bzip2 46 - name: Unpack package 47 run: | 48 tar xjf alsa-lib-$(cat version).tar.bz2 49 mkdir artifacts 50 cp alsa-lib-$(cat version).tar.bz2 artifacts 51 - name: Configure package 52 run: | 53 cd alsa-lib-$(cat version) 54 export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g" 55 ./configure --disable-aload 56 - name: Build package 57 run: | 58 cd alsa-lib-$(cat version) 59 make 60 - name: Install package 61 run: | 62 cd alsa-lib-$(cat version) 63 make install 64 - name: Archive package 65 uses: actions/upload-artifact@v1 66 with: 67 name: alsa-lib-test-package 68 path: artifacts/ 69 70 ubuntu_last_build: 71 runs-on: ubuntu-latest 72 container: 73 image: ubuntu:latest 74 steps: 75 - name: Checkout 76 uses: actions/checkout@v2 77 - name: Prepare environment 78 run: | 79 export DEBIAN_FRONTEND=noninteractive 80 apt-get update 81 apt-get -y install apt-utils 82 apt-get -y full-upgrade 83 apt-get install -y git build-essential m4 autoconf automake libtool 84 - name: Configure 85 run: | 86 libtoolize --force --copy --automake 87 aclocal 88 autoheader 89 automake --foreign --copy --add-missing 90 autoconf 91 export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g" 92 ./configure --disable-aload 93 - name: Build 94 run: | 95 make 96 - name: Install 97 run: | 98 make install 99