From 3bd193e17cb1d75eb05ac840d4b3c4b151de0c87 Mon Sep 17 00:00:00 2001 From: Red_M Date: Tue, 18 Jun 2024 19:02:08 +1000 Subject: [PATCH] Minor GHA changes for getting automated releases completed. --- .github/workflows/main.yml | 2 +- pkg/deej/scripts/linux/build-dev.sh | 3 ++- pkg/deej/scripts/linux/build-release.sh | 2 +- pkg/deej/scripts/misc/default-config.yaml | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 52aa3d5..5c9abb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, ubuntu-latest] + os: [windows-latest, debian-latest] mode: [release, dev] go: ["1.22"] diff --git a/pkg/deej/scripts/linux/build-dev.sh b/pkg/deej/scripts/linux/build-dev.sh index caa19ab..5e1c04f 100755 --- a/pkg/deej/scripts/linux/build-dev.sh +++ b/pkg/deej/scripts/linux/build-dev.sh @@ -15,6 +15,7 @@ go build -o deej-dev -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.versionTag= if [ $? -eq 0 ]; then echo 'Done.' else - echo 'Error: "go build" exited with a non-zero code. Are you running this script from the root deej directory?' + echo 'Error: "go build" exited with a non-zero code.' exit 1 fi + diff --git a/pkg/deej/scripts/linux/build-release.sh b/pkg/deej/scripts/linux/build-release.sh index cc24193..8cdc574 100755 --- a/pkg/deej/scripts/linux/build-release.sh +++ b/pkg/deej/scripts/linux/build-release.sh @@ -15,7 +15,7 @@ go build -o deej-release -ldflags "-s -w -X main.gitCommit=$GIT_COMMIT -X main.v if [ $? -eq 0 ]; then echo 'Done.' else - echo 'Error: "go build" exited with a non-zero code. Are you running this script from the root deej directory?' + echo 'Error: "go build" exited with a non-zero code.' exit 1 fi diff --git a/pkg/deej/scripts/misc/default-config.yaml b/pkg/deej/scripts/misc/default-config.yaml index d8092d5..17a2a95 100644 --- a/pkg/deej/scripts/misc/default-config.yaml +++ b/pkg/deej/scripts/misc/default-config.yaml @@ -25,3 +25,4 @@ baud_rate: 9600 # adjust the amount of signal noise reduction depending on your hardware quality # supported values are "low" (excellent hardware), "default" (regular hardware) or "high" (bad, noisy hardware) noise_reduction: default +