2020-05-22 14:17:57 -04:00
|
|
|
name: Ubuntu
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-10-21 17:27:47 -04:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'htdocs/**'
|
|
|
|
- 'web-src/**'
|
2020-05-22 14:17:57 -04:00
|
|
|
pull_request:
|
2023-10-21 17:27:47 -04:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'htdocs/**'
|
|
|
|
- 'web-src/**'
|
2023-08-31 16:59:26 -04:00
|
|
|
workflow_dispatch:
|
2020-05-22 14:17:57 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-10-21 16:32:35 -04:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-31 16:45:49 -04:00
|
|
|
|
2023-09-02 17:24:36 -04:00
|
|
|
- name: Install dependencies
|
2020-06-08 05:26:30 -04:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-01-10 16:12:28 -05:00
|
|
|
sudo apt-get install -yq build-essential clang clang-tools git autotools-dev autoconf libtool gettext gawk gperf bison flex libconfuse-dev libunistring-dev libsqlite3-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev libasound2-dev libmxml-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev libevent-dev libplist-dev libsodium-dev libcurl4-openssl-dev libjson-c-dev libprotobuf-c-dev libpulse-dev libwebsockets-dev libgnutls28-dev
|
2023-08-31 16:45:49 -04:00
|
|
|
|
2023-09-02 17:24:36 -04:00
|
|
|
- name: Build and check
|
2020-05-22 14:17:57 -04:00
|
|
|
run: |
|
|
|
|
autoreconf -vi
|
2023-09-02 17:24:36 -04:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user --enable-chromecast --with-pulseaudio
|
2021-03-20 02:57:12 -04:00
|
|
|
make
|
|
|
|
make check
|
|
|
|
make distcheck
|
2023-08-31 16:45:49 -04:00
|
|
|
|
2023-09-02 17:24:36 -04:00
|
|
|
- name: Install
|
2021-03-20 02:57:12 -04:00
|
|
|
run: |
|
2023-09-02 17:24:36 -04:00
|
|
|
sudo mkdir -p /srv/music
|
|
|
|
sudo make install
|
|
|
|
sudo sed -i 's/loglevel = log/loglevel = debug/g' /etc/owntone.conf
|
2023-08-31 16:45:49 -04:00
|
|
|
|
2023-09-02 17:24:36 -04:00
|
|
|
- name: Install and run avahi-daemon
|
2023-08-31 16:45:49 -04:00
|
|
|
run: |
|
|
|
|
sudo apt-get install -yq avahi-daemon
|
|
|
|
|
2023-09-02 17:24:36 -04:00
|
|
|
- name: Test run
|
2023-08-31 16:45:49 -04:00
|
|
|
run: |
|
2023-09-02 17:24:36 -04:00
|
|
|
sudo /usr/sbin/owntone -f -t
|