Skip to content

Commit

Permalink
Workflows for checking builds and start/finish of various configurati…
Browse files Browse the repository at this point in the history
…ons.
  • Loading branch information
mikebrady committed Oct 28, 2022
2 parents 7dfb436 + fca2649 commit 3293a7c
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/check_ap2_systemd_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Basic ALSA configuration for systemd, using a build folder.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
- name: Configure
run: |
mkdir build
cd build
autoreconf -i ..
../configure --sysconfdir=/etc --with-alsa --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2
- name: Make
run: |
cd build
make -j
- name: Install
run: |
cd build
sudo make install
- name: Invoke
run: |
sudo systemctl start shairport-sync
- name: Terminate
run: |
sudo systemctl stop shairport-sync
32 changes: 32 additions & 0 deletions .github/workflows/check_ap2_systemd_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Full configuration (but without apple-alac) for systemd.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libconfig-dev libasound2-dev libao-dev libjack-dev libpulse-dev libsoundio-dev libsndio-dev libglib2.0-dev libmosquitto-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
- name: Configure
run: |
autoreconf -i
./configure --sysconfdir=/etc --with-alsa --with-ao --with-dummy --with-jack --with-pa --with-pipe --with-sndio --with-soundio --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-dbus-interface --with-mpris-interface --with-mqtt-client --with-airplay-2
- name: Make
run: |
make -j
- name: Install
run: |
sudo make install
- name: Invoke
run: |
sudo systemctl start shairport-sync
- name: Terminate
run: |
sudo systemctl stop shairport-sync
36 changes: 36 additions & 0 deletions .github/workflows/check_ap2_systemd_full_build_folder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Full configuration (but without apple-alac) for systemd, using a build folder.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libconfig-dev libasound2-dev libao-dev libjack-dev libpulse-dev libsoundio-dev libsndio-dev libglib2.0-dev libmosquitto-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
- name: Configure
run: |
mkdir build
cd build
autoreconf -i ..
../configure --sysconfdir=/etc --with-alsa --with-ao --with-dummy --with-jack --with-pa --with-pipe --with-sndio --with-soundio --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-dbus-interface --with-mpris-interface --with-mqtt-client --with-airplay-2
- name: Make
run: |
cd build
make -j
- name: Install
run: |
cd build
sudo make install
- name: Invoke
run: |
sudo systemctl start shairport-sync
- name: Terminate
run: |
sudo systemctl stop shairport-sync
33 changes: 33 additions & 0 deletions .github/workflows/check_ap2_systemv_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Full configuration (but without apple-alac) for a System V system.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libdaemon-dev libconfig-dev libasound2-dev libao-dev libjack-dev libpulse-dev libsoundio-dev libsndio-dev libglib2.0-dev libmosquitto-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev libplist-dev libsodium-dev libavutil-dev libavcodec-dev libavformat-dev uuid-dev libgcrypt-dev xxd
- name: Configure
run: |
autoreconf -i
./configure --sysconfdir=/etc --with-alsa --with-ao --with-dummy --with-libdaemon --with-jack --with-pa --with-pipe --with-sndio --with-soundio --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemv --with-dbus-interface --with-mpris-interface --with-mqtt-client --with-airplay-2
- name: Make
run: |
make -j
- name: Install
run: |
sudo make install
- name: Invoke
run: |
sudo /etc/init.d/shairport-sync start
sleep 2
- name: Terminate
run: |
sudo /etc/init.d/shairport-sync stop
34 changes: 34 additions & 0 deletions .github/workflows/check_classic_mac_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Basic libao configuration for macOS with BREW -- classic only, because macOS can't host NQPTP.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
brew update
brew install automake
brew install openssl
brew install popt
brew install libconfig
brew install libao
- name: Configure
run: |
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export PATH="/usr/local/opt/openssl/bin:${PATH}"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
autoreconf -fi
./configure --with-os=darwin --with-ao --with-stdout --with-dns_sd --with-ssl=openssl
- name: Make
run: |
make
36 changes: 36 additions & 0 deletions .github/workflows/check_classic_systemd_basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Basic ALSA classic configuration for systemd, using a build folder.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libconfig-dev libasound2-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev
- name: Configure
run: |
mkdir build
cd build
autoreconf -i ..
../configure --sysconfdir=/etc --with-alsa --with-soxr --with-avahi --with-ssl=openssl --with-systemd
- name: Make
run: |
cd build
make -j
- name: Install
run: |
cd build
sudo make install
- name: Invoke
run: |
sudo systemctl start shairport-sync
- name: Terminate
run: |
sudo systemctl stop shairport-sync
36 changes: 36 additions & 0 deletions .github/workflows/check_classic_systemd_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Full classic configuration (but without apple-alac) for systemd, using a build folder.

on:
push:
branches: [ "development" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt-get -y --no-install-recommends install build-essential git xmltoman autoconf automake libtool libpopt-dev libconfig-dev libasound2-dev libao-dev libjack-dev libpulse-dev libsoundio-dev libsndio-dev libglib2.0-dev libmosquitto-dev avahi-daemon libavahi-client-dev libssl-dev libsoxr-dev
- name: Configure
run: |
mkdir build
cd build
autoreconf -i ..
../configure --sysconfdir=/etc --with-alsa --with-ao --with-dummy --with-jack --with-pa --with-pipe --with-sndio --with-soundio --with-stdout --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-dbus-interface --with-mpris-interface --with-mqtt-client
- name: Make
run: |
cd build
make -j
- name: Install
run: |
cd build
sudo make install
- name: Invoke
run: |
sudo systemctl start shairport-sync
- name: Terminate
run: |
sudo systemctl stop shairport-sync

0 comments on commit 3293a7c

Please sign in to comment.