2022-08-22 17:07:25 +03:00
|
|
|
name: Autotools distcheck and ABI check
|
2022-05-29 02:06:29 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
distcheck:
|
2024-06-26 17:01:59 +03:00
|
|
|
runs-on: ubuntu-24.04
|
2022-05-29 02:06:29 +03:00
|
|
|
steps:
|
2024-03-28 10:04:21 +03:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-29 02:06:29 +03:00
|
|
|
|
2024-03-28 10:04:21 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-15 20:46:38 +03:00
|
|
|
with:
|
|
|
|
repository: ietf-wg-cellar/flac-test-files
|
|
|
|
path: ./test-files
|
|
|
|
|
2022-05-29 02:06:29 +03:00
|
|
|
- name: Install Linux dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2024-09-11 15:40:12 +03:00
|
|
|
sudo apt-get install -y libtool-bin libogg-dev doxygen libxml2-utils w3c-sgml-lib pandoc abi-compliance-checker vorbis-tools oggz-tools
|
2022-05-29 02:06:29 +03:00
|
|
|
|
|
|
|
- name: Build with Autotools
|
|
|
|
run: |
|
|
|
|
./autogen.sh
|
|
|
|
./configure
|
|
|
|
|
|
|
|
- name: Build and check source package
|
|
|
|
run: make distcheck
|
|
|
|
|
2022-08-22 17:07:25 +03:00
|
|
|
- name: Check binary compatibility
|
|
|
|
run: |
|
|
|
|
make
|
2024-08-28 22:13:48 +03:00
|
|
|
unxz --keep test/abi/abi-libFLAC-1.5.0.dump.xz
|
|
|
|
unxz --keep test/abi/abi-libFLAC++-1.5.0.dump.xz
|
|
|
|
abi-compliance-checker -l flac -old test/abi/abi-libFLAC-1.5.0.dump -new test/abi/abi-descriptor-libFLAC-1.5.0.xml
|
|
|
|
abi-compliance-checker -l flac++ -old test/abi/abi-libFLAC++-1.5.0.dump -new test/abi/abi-descriptor-libFLAC++-1.5.0.xml
|
2022-08-22 17:07:25 +03:00
|
|
|
|
2023-06-15 20:46:38 +03:00
|
|
|
- name: Check with flac test files
|
2023-06-18 21:32:27 +03:00
|
|
|
run: ./src/flac/flac -t test-files/subset/*.flac test-files/uncommon/0[5-9]*.flac test-files/uncommon/10*.flac
|
2023-06-15 20:46:38 +03:00
|
|
|
|
2024-06-26 16:50:52 +03:00
|
|
|
- name: Upload build
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: dist-tarball
|
|
|
|
path: |
|
|
|
|
./flac-*.tar.xz
|
|
|
|
|
2023-05-30 08:41:35 +03:00
|
|
|
- name: Upload ABI compliance reports
|
2024-03-28 10:04:21 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-05-30 08:41:35 +03:00
|
|
|
with:
|
|
|
|
name: flac-${{ github.sha }}-${{ github.run_id }}-compat
|
|
|
|
path: |
|
|
|
|
./compat_reports
|
|
|
|
|
2022-05-29 02:06:29 +03:00
|
|
|
- name: Upload logs on failure
|
2024-03-28 10:04:21 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-05-29 02:06:29 +03:00
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
name: flac-${{ github.sha }}-${{ github.run_id }}-logs
|
2022-08-22 17:07:25 +03:00
|
|
|
path: |
|
|
|
|
./flac-**/**/*.log
|
2023-08-01 15:03:02 +03:00
|
|
|
./compat_reports
|