-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1004 Bytes
/
c-cpp.yml
File metadata and controls
38 lines (34 loc) · 1004 Bytes
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
name: libsndfile-samples compile test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libsndfile dependencies
run: |
sudo apt install autoconf autogen automake build-essential libasound2-dev \
libflac-dev libogg-dev libtool libvorbis-dev libopus-dev libmp3lame-dev \
libmpg123-dev pkg-config python3 python-is-python3
- name: Install libsndfile
run: |
git clone https://github.com/libsndfile/libsndfile.git
cd libsndfile
autoreconf -vif
./configure --enable-werror
make
make check
sudo make install
- name: Compiler version
run: |
gcc --version
- name: Compile samples
run: |
for file in `ls src`; do
echo "gcc -Wall -Werror src/${file} -lsndfile -lm"
gcc -Wall -Werror src/${file} -lsndfile -lm
done