mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 16:26:17 -04:00
[gh-actions] Prepare workflow with runtest
This commit is contained in:
parent
a9e21dcbfd
commit
d5335317a6
27
.github/workflows/ubuntu.yml
vendored
27
.github/workflows/ubuntu.yml
vendored
@ -9,24 +9,37 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
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: |
|
run: |
|
||||||
autoreconf -vi
|
autoreconf -vi
|
||||||
./configure
|
./configure --prefix=$HOME/owntone_data/usr --sysconfdir=$HOME/owntone_data/etc --localstatedir=$HOME/owntone_data/var --enable-chromecast --with-pulseaudio
|
||||||
make
|
make
|
||||||
make check
|
make check
|
||||||
make distcheck
|
make distcheck
|
||||||
- name: build with lastfm, chromecast, pulse
|
|
||||||
|
- name: install
|
||||||
run: |
|
run: |
|
||||||
autoreconf -vi
|
mkdir -p $HOME/owntone_data/etc
|
||||||
./configure --enable-lastfm --enable-chromecast --with-pulseaudio
|
mkdir -p $HOME/owntone_data/media
|
||||||
make
|
make install
|
||||||
|
|
||||||
|
- name: install and run avahi-daemon
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -yq avahi-daemon
|
||||||
|
|
||||||
|
- name: configure and 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user