mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[gh-actions] Run test with standard install method
This commit is contained in:
parent
d5335317a6
commit
e850549aa1
23
.github/workflows/ubuntu.yml
vendored
23
.github/workflows/ubuntu.yml
vendored
@ -14,32 +14,29 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: install dependencies
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
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
|
||||
|
||||
- name: build and check
|
||||
- name: Build and check
|
||||
run: |
|
||||
autoreconf -vi
|
||||
./configure --prefix=$HOME/owntone_data/usr --sysconfdir=$HOME/owntone_data/etc --localstatedir=$HOME/owntone_data/var --enable-chromecast --with-pulseaudio
|
||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-install-user --enable-chromecast --with-pulseaudio
|
||||
make
|
||||
make check
|
||||
make distcheck
|
||||
|
||||
- name: install
|
||||
- name: Install
|
||||
run: |
|
||||
mkdir -p $HOME/owntone_data/etc
|
||||
mkdir -p $HOME/owntone_data/media
|
||||
make install
|
||||
sudo mkdir -p /srv/music
|
||||
sudo make install
|
||||
sudo sed -i 's/loglevel = log/loglevel = debug/g' /etc/owntone.conf
|
||||
|
||||
- name: install and run avahi-daemon
|
||||
- name: Install and run avahi-daemon
|
||||
run: |
|
||||
sudo apt-get install -yq avahi-daemon
|
||||
|
||||
- name: configure and run
|
||||
- name: Test run
|
||||
run: |
|
||||
sed -i 's/uid = "owntone"/uid = ${USER}/g' $HOME/owntone_data/etc/owntone.conf
|
||||
sed -i 's/loglevel = log/loglevel = debug/g' $HOME/owntone_data/etc/owntone.conf
|
||||
sed -i 's/directories = { "\/srv\/music" }/directories = { "${HOME}\/owntone_data\/media" }/g' $HOME/owntone_data/etc/owntone.conf
|
||||
./src/owntone -f -t
|
||||
sudo /usr/sbin/owntone -f -t
|
||||
|
Loading…
Reference in New Issue
Block a user