-
Notifications
You must be signed in to change notification settings - Fork 282
59 lines (49 loc) · 1.75 KB
/
distcheck.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
name: Autotools distcheck and ABI check
on:
push:
branches:
- main
- master
pull_request:
jobs:
distcheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: ietf-wg-cellar/flac-test-files
path: ./test-files
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib pandoc abi-compliance-checker
- name: Build with Autotools
run: |
./autogen.sh
./configure
- name: Build and check source package
run: make distcheck
- name: Check binary compatibility
run: |
make
unxz --keep test/abi/abi-libFLAC-1.4.0.dump.xz
unxz --keep test/abi/abi-libFLAC++-1.4.4.dump.xz
abi-compliance-checker -l flac -old test/abi/abi-libFLAC-1.4.0.dump -new test/abi/abi-descriptor-libFLAC-1.4.4.xml
abi-compliance-checker -l flac++ -old test/abi/abi-libFLAC++-1.4.4.dump -new test/abi/abi-descriptor-libFLAC++-1.4.4.xml
- name: Check with flac test files
run: ./src/flac/flac -t test-files/subset/*.flac test-files/uncommon/0[5-9]*.flac test-files/uncommon/10*.flac
- name: Upload ABI compliance reports
uses: actions/upload-artifact@v3
with:
name: flac-${{ github.sha }}-${{ github.run_id }}-compat
path: |
./compat_reports
- name: Upload logs on failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: flac-${{ github.sha }}-${{ github.run_id }}-logs
path: |
./flac-**/**/*.log
./compat_reports