Skip to content

Commit

Permalink
Merge pull request #340 from nzbgetcom/develop
Browse files Browse the repository at this point in the history
Release v24.2
  • Loading branch information
dnzbk committed Aug 5, 2024
2 parents f223cdd + bc9637c commit b41ebcf
Show file tree
Hide file tree
Showing 206 changed files with 41,485 additions and 6,510 deletions.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ body:
label: NZBGet Version
description: Which version of NZBGet has this bug?
options:
- v24.2-stable
- v24.3-testing
- v24.1-stable
- v24.1-testing
- v24-stable
- v24-testing
- v23-stable
- v23-testing
- v22-stable (nzbgetcom takeover)
- v22-testing (nzbgetcom takeover)
- v21 or earlier (orignal nzbget)
- latest-stable (if not listed here)
- latest-testing (if not listed here)
validations:
required: true
- type: dropdown
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/03_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ body:
label: NZBGet Version
description: Version of NZBGet for the scope of this issue
options:
- v24.2-stable
- v24.3-testing
- v24.1-stable
- v24.1-testing
- v24-stable
- v24-testing
- v23-stable
- v23-testing
- v22-stable (nzbgetcom takeover)
- v22-testing (nzbgetcom takeover)
- v21 or earlier (orignal nzbget)
- latest-stable (if not listed here)
- latest-testing (if not listed here)
validations:
required: true
- type: dropdown
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: android build

on:
workflow_call:
workflow_dispatch:

jobs:
build:
runs-on: [self-hosted, nzbget-android]

steps:

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build
run: |
BUILD_PARAMS="android bin installer"
if [ "$GITHUB_REF_NAME" == "develop" ] || [ "$GITHUB_REF_NAME" == "main" ]; then
BUILD_PARAMS="$BUILD_PARAMS debug release"
else
BUILD_PARAMS="$BUILD_PARAMS release"
fi
if [ "$GITHUB_REF_NAME" != "main" ]; then
BUILD_PARAMS="$BUILD_PARAMS testing"
fi
bash linux/build-nzbget.sh $BUILD_PARAMS
- name: Rename build artifacts
if: github.ref_name != 'main' && github.ref_name != 'develop'
run: |
cd build
SUFFIX="-${GITHUB_REF_NAME/\//-}-bin-android.run"
for FILE in *.run; do
[ -f $FILE ] || continue
NEW_FILE=${FILE/-bin-android.run/$SUFFIX}
mv $FILE $NEW_FILE
done
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: nzbget-android-installers
path: build/*.run
retention-days: 5
21 changes: 8 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ jobs:

build-linux:
uses: ./.github/workflows/linux.yml


build-android:
uses: ./.github/workflows/android.yml

build-osx:
uses: ./.github/workflows/osx.yml
permissions:
actions: write

build-synology:
uses: ./.github/workflows/synology.yml

build-qnap:
uses: ./.github/workflows/qnap.yml

build-linux-pkg:
uses: ./.github/workflows/linux-pkg.yml
with:
Expand All @@ -40,12 +37,12 @@ jobs:
needs: [build-linux]
permissions:
actions: write

generate-signatures:
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
runs-on: ubuntu-latest
needs: [build-windows, build-linux, build-osx, build-synology, build-qnap, repack-qnap, build-linux-pkg]
needs: [build-windows, build-linux, build-osx, build-android, repack-qnap, build-linux-pkg]
permissions:
actions: write
steps:
Expand All @@ -58,10 +55,9 @@ jobs:
mkdir -p builds
mv nzbget-windows-installers/* builds || true
mv nzbget-linux-installers/* builds || true
mv nzbget-android-installers/* builds || true
mv nzbget-osx-installers/* builds || true
mv nzbget-synology-packages/* builds || true
mv nzbget-qnap-packages/* builds || true
mv nzbget-qnap-native-packages/* builds || true
mv nzbget-deb-packages/* builds || true
mv nzbget-rpm-packages/* builds || true
cd builds
Expand Down Expand Up @@ -110,10 +106,9 @@ jobs:
name: |
nzbget-windows-installers
nzbget-linux-installers
nzbget-android-installers
nzbget-osx-installers
nzbget-synology-packages
nzbget-qnap-packages
nzbget-qnap-native-packages
- name: Delete unneded linux packages artifacts
uses: geekyeggo/delete-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
context: docker
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
provenance: false
push: true
Expand Down
37 changes: 12 additions & 25 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,46 +15,33 @@ jobs:
with:
fetch-depth: 0

- name: Change version for non-release
if: github.ref_name != 'main'
run: |
VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs)
NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')"
sed -e "s|AC_INIT(nzbget.*|AC_INIT(nzbget, $NEW_VERSION, https://github.com/nzbgetcom/nzbget/issues)|g" -i configure.ac
echo NEW_VERSION=$NEW_VERSION >> $GITHUB_ENV
- name: Build
run: |
rm -rf /build/nzbget
rm -rf /build/output
cp -r . /build/nzbget
cd /build
BUILD_PARAMS="linux bin installer"
if [ "$GITHUB_REF_NAME" == "develop" ] || [ "$GITHUB_REF_NAME" == "main" ]; then
DEBUG=yes
BUILD_PARAMS="$BUILD_PARAMS debug release"
else
DEBUG=no
BUILD_PARAMS="$BUILD_PARAMS release"
fi
if [ "$GITHUB_REF_NAME" != "main" ]; then
BUILD_PARAMS="$BUILD_PARAMS testing"
fi
ALL_ARCHS="i686 x86_64 aarch64 armhf armel mipseb mipsel ppc6xx ppc500 riscv64" DEBUG=$DEBUG /build/scripts/build-nzbget-ci.sh
bash linux/build-nzbget.sh $BUILD_PARAMS
- name: Rename build artifacts
if: github.ref_name != 'main' && github.ref_name != 'develop'
run: |
cd /build/output
NEW_VERSION_FEATURE="$NEW_VERSION-${GITHUB_REF_NAME/\//-}"
cd build
SUFFIX="-${GITHUB_REF_NAME/\//-}-bin-linux.run"
for FILE in *.run; do
[ -f $FILE ] || continue
NEW_FILE=${FILE/$NEW_VERSION/$NEW_VERSION_FEATURE}
mv $FILE $NEW_FILE
NEW_FILE=${FILE/-bin-linux.run/$SUFFIX}
mv $FILE $NEW_FILE
done
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: nzbget-linux-installers
path: /build/output/*.run
path: build/*.run
retention-days: 5

- name: Cleanup
run: |
rm -rf /build/nzbget
rm -rf /build/output
26 changes: 11 additions & 15 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- name: Build
run: |
if [ "$GITHUB_REF_NAME" != "main" ]; then
bash osx/build-nzbget-x64.sh testing
bash osx/build-nzbget.sh x64 testing
else
bash osx/build-nzbget-x64.sh
bash osx/build-nzbget.sh x64
fi
- name: Rename build artifacts
Expand Down Expand Up @@ -51,34 +51,30 @@ jobs:
with:
fetch-depth: 0

- name: Change version for non-release
if: github.ref_name != 'main'
run: |
VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs)
NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')"
sed -e "s|AC_INIT(nzbget.*|AC_INIT(nzbget, $NEW_VERSION, https://github.com/nzbgetcom/nzbget/issues)|g" -i '' configure.ac
echo NEW_VERSION=$NEW_VERSION >> $GITHUB_ENV
- name: Build
run: |
bash osx/build-nzbget-universal.sh
if [ "$GITHUB_REF_NAME" != "main" ]; then
bash osx/build-nzbget.sh universal testing
else
bash osx/build-nzbget.sh universal
fi
- name: Rename build artifacts
if: github.ref_name != 'main' && github.ref_name != 'develop'
run: |
cd osx/build/Release
NEW_VERSION_FEATURE="$NEW_VERSION-${GITHUB_REF_NAME/\//-}"
cd build
SUFFIX="${GITHUB_REF_NAME/\//-}"
for FILE in *.zip; do
[ -f $FILE ] || continue
NEW_FILE=${FILE/$NEW_VERSION/$NEW_VERSION_FEATURE}
NEW_FILE=${FILE/-bin-macos-universal.zip/-$SUFFIX-bin-macos-universal.zip}
mv $FILE $NEW_FILE
done
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: nzbget-osx-installers-universal
path: osx/build/Release/*.zip
path: build/*-universal.zip
retention-days: 5

combine-osx-artifacts:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qnap-repack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Rename build artifacts
if: github.ref_name != 'main'
run: |
VERSION=$(cat configure.ac | grep AC_INIT | cut -d , -f 2 | xargs)
VERSION=$(grep "set(VERSION " CMakeLists.txt | cut -d '"' -f 2)
NEW_VERSION="$VERSION-testing-$(date '+%Y%m%d')"
cd /qnap/nzbget/build/
for FILE in *.qpkg; do
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/qnap.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/synology.yml

This file was deleted.

Loading

0 comments on commit b41ebcf

Please sign in to comment.