Bump version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Builds a docker image when a commit is made. Also pushes the build if the branch is 'master' or 'development'.
|
||||
|
||||
# Tag pattern
|
||||
# 'master' - latest, latest-classic
|
||||
# 'master' - rolling, rolling-classic
|
||||
# 'development' - development, development-classic
|
||||
|
||||
name: Build and push docker (commit)
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
- name: Is branch "master"?
|
||||
if: ${{ env.SHAIRPORT_SYNC_BRANCH == 'master' }}
|
||||
run: |
|
||||
echo "IMAGE_TAG_BASE=latest" >> $GITHUB_ENV
|
||||
echo "IMAGE_TAG_BASE=rolling" >> $GITHUB_ENV
|
||||
|
||||
- name: Is branch "development"?
|
||||
if: ${{ env.SHAIRPORT_SYNC_BRANCH == 'development' }}
|
||||
@@ -74,3 +74,4 @@ jobs:
|
||||
tags: ${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.IMAGE_TAG_BASE }}-classic
|
||||
build-args: |
|
||||
SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Builds & pushes a docker image when a tag is created.
|
||||
# Tag pattern: '[tag]' & '[tag]-classic'
|
||||
# 'stable' & 'stable-classic' also, when master tagged.
|
||||
# 'latest' & 'latest-classic' also, when master tagged.
|
||||
|
||||
# Only pushes the tag when it matches one of the following patterns:
|
||||
# X, X.Y or X.Y.Z
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
|
||||
- name: Is branch "master"?
|
||||
if: ${{ env.SHAIRPORT_SYNC_BRANCH == 'master' }}
|
||||
run: echo "STABLE_TAG=true" >> $GITHUB_ENV
|
||||
run: echo "LATEST_TAG=true" >> $GITHUB_ENV
|
||||
|
||||
- name: Is branch "development"?
|
||||
if: ${{ env.SHAIRPORT_SYNC_BRANCH == 'development' }}
|
||||
@@ -67,7 +67,7 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }}
|
||||
${{ env.STABLE_TAG == 'true' && format('{0}:stable', secrets.DOCKER_IMAGE_NAME) || '' }}
|
||||
${{ env.LATEST_TAG == 'true' && format('{0}:latest', secrets.DOCKER_IMAGE_NAME) || '' }}
|
||||
build-args: |
|
||||
SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
NQPTP_BRANCH=${{ env.NQPTP_BRANCH }}
|
||||
@@ -81,6 +81,7 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKER_IMAGE_NAME }}:${{ env.GIT_TAG }}-classic
|
||||
${{ env.STABLE_TAG == 'true' && format('{0}:stable-classic', secrets.DOCKER_IMAGE_NAME) || '' }}
|
||||
${{ env.LATEST_TAG == 'true' && format('{0}:latest-classic', secrets.DOCKER_IMAGE_NAME) || '' }}
|
||||
build-args: |
|
||||
SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
SHAIRPORT_SYNC_BRANCH=${{ env.SHAIRPORT_SYNC_BRANCH }}
|
||||
|
||||
|
||||
@@ -19,3 +19,4 @@ jobs:
|
||||
# These are the defaults at the time of writing. https://github.com/marketplace/actions/close-stale-issues
|
||||
# days-before-stale: 45
|
||||
# days-before-close: 7
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.50])
|
||||
AC_INIT([shairport-sync], [4.1-rc4], [4265913+mikebrady@users.noreply.github.com])
|
||||
AC_INIT([shairport-sync], [4.1-rc5], [4265913+mikebrady@users.noreply.github.com])
|
||||
AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AC_CONFIG_SRCDIR([shairport.c])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
||||
+77
-10
@@ -1696,7 +1696,8 @@ void termHandler(__attribute__((unused)) int k) {
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
void _display_config(const char *filename, const int linenumber, int argc, char **argv) {
|
||||
void _display_config(const char *filename, const int linenumber, __attribute__((unused)) int argc,
|
||||
__attribute__((unused)) char **argv) {
|
||||
_inform(filename, linenumber, ">> Display Config Start.");
|
||||
|
||||
// see the man entry on popen
|
||||
@@ -1758,6 +1759,7 @@ void _display_config(const char *filename, const int linenumber, int argc, char
|
||||
} else {
|
||||
debug(1, "Can't print version string!\n");
|
||||
}
|
||||
|
||||
if (argc != 0) {
|
||||
char *obfp = result;
|
||||
int i;
|
||||
@@ -1785,18 +1787,82 @@ void _display_config(const char *filename, const int linenumber, int argc, char
|
||||
_inform(filename, linenumber, "Configuration File:");
|
||||
_inform(filename, linenumber, " %s", config_file_real_path);
|
||||
_inform(filename, linenumber, "");
|
||||
_inform(filename, linenumber, "Configuration File Settings:");
|
||||
config_write(config.cfg, cw);
|
||||
fclose(cw);
|
||||
// get back the raw configuration file settings text
|
||||
FILE *cr;
|
||||
cr = fdopen(configpipe[0], "r");
|
||||
while (fgets(result, 1024, cr) != NULL) {
|
||||
// replace funny character at the end, if it's there
|
||||
if (result[strlen(result) - 1] <= ' ')
|
||||
result[strlen(result) - 1] = '\0'; // remove the last character if it's not printable
|
||||
_inform(filename, linenumber, " %s", result);
|
||||
}
|
||||
int i = 0;
|
||||
int ch = 0;
|
||||
do {
|
||||
ch = fgetc(cr);
|
||||
if (ch == EOF) {
|
||||
result[i] = '\0';
|
||||
} else {
|
||||
result[i] = (char)ch;
|
||||
i++;
|
||||
}
|
||||
} while (ch != EOF);
|
||||
fclose(cr);
|
||||
// debug(1,"result is \"%s\".",result);
|
||||
// remove empty stanzas
|
||||
char *i0 = str_replace(result, "general : \n{\n};\n", "");
|
||||
char *i1 = str_replace(i0, "sessioncontrol : \n{\n};\n", "");
|
||||
char *i2 = str_replace(i1, "alsa : \n{\n};\n", "");
|
||||
char *i3 = str_replace(i2, "sndio : \n{\n};\n", "");
|
||||
char *i4 = str_replace(i3, "pa : \n{\n};\n", "");
|
||||
char *i5 = str_replace(i4, "jack : \n{\n};\n", "");
|
||||
char *i6 = str_replace(i5, "pipe : \n{\n};\n", "");
|
||||
char *i7 = str_replace(i6, "dsp : \n{\n};\n", "");
|
||||
char *i8 = str_replace(i7, "metadata : \n{\n};\n", "");
|
||||
char *i9 = str_replace(i8, "mqtt : \n{\n};\n", "");
|
||||
char *i10 = str_replace(i9, "diagnostics : \n{\n};\n", "");
|
||||
// debug(1,"i10 is \"%s\".",i10);
|
||||
|
||||
// free intermediate strings
|
||||
free(i9);
|
||||
free(i8);
|
||||
free(i7);
|
||||
free(i6);
|
||||
free(i5);
|
||||
free(i4);
|
||||
free(i3);
|
||||
free(i2);
|
||||
free(i1);
|
||||
free(i0);
|
||||
|
||||
// print it out
|
||||
if (strlen(i10) == 0)
|
||||
_inform(filename, linenumber, "The Configuration file contains no active settings.");
|
||||
else {
|
||||
_inform(filename, linenumber, "Configuration File Settings:");
|
||||
char *p = i10;
|
||||
while (*p != '\0') {
|
||||
i = 0;
|
||||
while ((*p != '\0') && (*p != '\n')) {
|
||||
result[i] = *p;
|
||||
p++;
|
||||
i++;
|
||||
}
|
||||
if (i != 0) {
|
||||
result[i] = '\0';
|
||||
_inform(filename, linenumber, " %s", result);
|
||||
}
|
||||
if (*p == '\n')
|
||||
p++;
|
||||
}
|
||||
}
|
||||
|
||||
free(i10); // free the cleaned-up configuration string
|
||||
|
||||
/*
|
||||
while (fgets(result, 1024, cr) != NULL) {
|
||||
// replace funny character at the end, if it's there
|
||||
if (result[strlen(result) - 1] <= ' ')
|
||||
result[strlen(result) - 1] = '\0'; // remove the last character if it's not
|
||||
printable _inform(filename, linenumber, " %s", result);
|
||||
}
|
||||
*/
|
||||
} else {
|
||||
debug(1, "Error making pipe.\n");
|
||||
}
|
||||
@@ -2298,8 +2364,9 @@ int main(int argc, char **argv) {
|
||||
debug(1, "mdns backend \"%s\".", strnull(config.mdns_name));
|
||||
debug(2, "userSuppliedLatency is %d.", config.userSuppliedLatency);
|
||||
debug(1, "interpolation setting is \"%s\".",
|
||||
config.packet_stuffing == ST_basic ? "basic"
|
||||
: config.packet_stuffing == ST_soxr ? "soxr" : "auto");
|
||||
config.packet_stuffing == ST_basic ? "basic"
|
||||
: config.packet_stuffing == ST_soxr ? "soxr"
|
||||
: "auto");
|
||||
debug(1, "interpolation soxr_delay_threshold is %d.", config.soxr_delay_threshold);
|
||||
debug(1, "resync time is %f seconds.", config.resyncthreshold);
|
||||
debug(1, "allow a session to be interrupted: %d.", config.allow_session_interruption);
|
||||
|
||||
Reference in New Issue
Block a user