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