From b88775c37645e1c1de066417e5c5e9e50613cca7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 15 Jan 2022 20:37:05 +0000 Subject: [PATCH] Set up release archives Signed-off-by: falkTX --- .github/workflows/build.yml | 126 +++++++++++++++++++++++++++++++++--- .github/workflows/irc.yml | 8 ++- utils/pack-linux.sh | 56 ---------------- utils/pack-macos-10.06.sh | 59 ----------------- utils/pack-macos-10.08.sh | 47 -------------- utils/pack-macos-10.10.sh | 58 ----------------- utils/pack-windows-cross.sh | 48 -------------- 7 files changed, 125 insertions(+), 277 deletions(-) delete mode 100755 utils/pack-linux.sh delete mode 100755 utils/pack-macos-10.06.sh delete mode 100755 utils/pack-macos-10.08.sh delete mode 100755 utils/pack-macos-10.10.sh delete mode 100755 utils/pack-windows-cross.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ccae50a..24b4d63e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,7 @@ name: build -on: - push: - branches: - - '*' - pull_request: - branches: - - '*' +on: [push] + env: DEBIAN_FRONTEND: noninteractive HOMEBREW_NO_AUTO_UPDATE: 1 @@ -49,6 +44,24 @@ jobs: name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | bin/* + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + cp utils/README-Linux.txt bin/README.txt + tar -c -z bin/* \ + --transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \ + -f ~/build.tar.gz \ + . + mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-arm64.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-arm64.tar.gz linux-armhf: runs-on: ubuntu-20.04 @@ -87,6 +100,24 @@ jobs: name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | bin/* + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + cp utils/README-Linux.txt bin/README.txt + tar -c -z bin/* \ + --transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \ + -f ~/build.tar.gz \ + . + mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-armhf.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-armhf.tar.gz linux-i686: runs-on: ubuntu-20.04 @@ -123,6 +154,24 @@ jobs: name: ${{ github.event.repository.name }}-linux-i686-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | bin/* + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + cp utils/README-Linux.txt bin/README.txt + tar -c -z bin/* \ + --transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \ + -f ~/build.tar.gz \ + . + mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-i686.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-i686.tar.gz linux-x86_64: runs-on: ubuntu-20.04 @@ -148,6 +197,24 @@ jobs: name: ${{ github.event.repository.name }}-linux-x86_64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }} path: | bin/* + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + cp utils/README-Linux.txt bin/README.txt + tar -c -z bin/* \ + --transform="s,^bin/,${{ github.event.repository.name }}-${{ github.ref_name }}," \ + -f ~/build.tar.gz \ + . + mv ~/build.tar.gz ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x86_64.tar.gz + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-linux-x86_64.tar.gz macos-universal: runs-on: macos-10.15 @@ -182,6 +249,19 @@ jobs: !bin/lv2 !bin/vst2 !bin/vst3 + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + mv *-macOS.pkg ${{ github.event.repository.name }}-${{ github.ref_name }}-macOS.pkg + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-macOS.pkg win32: runs-on: ubuntu-20.04 @@ -218,7 +298,22 @@ jobs: path: | bin/* !bin/*-ladspa.dll - !bin/*-dssi.dll + !bin/*-dssi* + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + mv bin ${{ github.event.repository.name }}-${{ github.ref_name }} + zip -r -9 build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}/* -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-ladspa.dll -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-dssi.dll + mv build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}-win32.zip + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-win32.zip win64: runs-on: ubuntu-20.04 @@ -250,6 +345,21 @@ jobs: bin/* !bin/*-ladspa.dll !bin/*-dssi.dll + - name: Create release archive + if: startsWith(github.ref, 'refs/tags/') + run: | + mv bin ${{ github.event.repository.name }}-${{ github.ref_name }} + zip -r -9 build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}/* -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-ladspa.dll -x ${{ github.event.repository.name }}-${{ github.ref_name }}/*-dssi.dll + mv build.zip ${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + draft: false + prerelease: false + files: | + ${{ github.event.repository.name }}-${{ github.ref_name }}-win64.zip plugin-validation: runs-on: ubuntu-20.04 diff --git a/.github/workflows/irc.yml b/.github/workflows/irc.yml index 539fa1d2..43bab7ef 100644 --- a/.github/workflows/irc.yml +++ b/.github/workflows/irc.yml @@ -1,6 +1,12 @@ name: irc -on: [push] +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' jobs: notification: diff --git a/utils/pack-linux.sh b/utils/pack-linux.sh deleted file mode 100755 index ce17e614..00000000 --- a/utils/pack-linux.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -set -e - -# -------------------------------------------------------------------------------------------------------------------------------- -# extract debs and pack them - -function compressFolderAsTarGz() { -rm -f "$1.tar.gz" -tar cf "$1.tar.gz" "$1" -rm -r "$1" -} - -# -------------------------------------------------------------------------------------------------------------------------------- - -if [ "$1" == "" ]; then -echo Missing argument -exit -fi - -# -------------------------------------------------------------------------------------------------------------------------------- - -NAME="$1" - -rm -rf "$NAME-linux32bit" -rm -rf "$NAME-linux64bit" - -make clean -CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32" make HAVE_JACK=false HAVE_PROJM=false -j 8 -mkdir -p "$NAME-linux32bit/ladspa" -mkdir -p "$NAME-linux32bit/dssi" -mkdir -p "$NAME-linux32bit/lv2" -mkdir -p "$NAME-linux32bit/vst" -mv bin/*-ladspa.so "$NAME-linux32bit/ladspa" -mv bin/*-dssi bin/*-dssi.so "$NAME-linux32bit/dssi" -mv bin/*.lv2/ "$NAME-linux32bit/lv2" -mv bin/*-vst.so "$NAME-linux32bit/vst" -cp utils/README-Linux.txt "$NAME-linux32bit/README.txt" -compressFolderAsTarGz "$NAME-linux32bit" - -make clean -CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" make HAVE_JACK=false HAVE_PROJM=false -j 8 -mkdir -p "$NAME-linux64bit/ladspa" -mkdir -p "$NAME-linux64bit/dssi" -mkdir -p "$NAME-linux64bit/lv2" -mkdir -p "$NAME-linux64bit/vst" -mv bin/*-ladspa.so "$NAME-linux64bit/ladspa" -mv bin/*-dssi bin/*-dssi.so "$NAME-linux64bit/dssi" -mv bin/*.lv2/ "$NAME-linux64bit/lv2" -mv bin/*-vst.so "$NAME-linux64bit/vst" -cp utils/README-Linux.txt "$NAME-linux64bit/README.txt" -compressFolderAsTarGz "$NAME-linux64bit" - -make clean - -# -------------------------------------------------------------------------------------------------------------------------------- diff --git a/utils/pack-macos-10.06.sh b/utils/pack-macos-10.06.sh deleted file mode 100755 index faa5b6a8..00000000 --- a/utils/pack-macos-10.06.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -set -e - -MODGUIS=("Kars" "MVerb" "MVerb" "Nekobi" "PingPongPan") - -# -------------------------------------------------------------------------------------------------------------------------------- -# extract debs and pack them - -function compressFolderAsZip() { -rm -f "$1.zip" -zip -X -r "$1" "$1" -rm -r "$1" -} - -# -------------------------------------------------------------------------------------------------------------------------------- - -if [ "$1" == "" ]; then -echo Missing argument -exit -fi - -sed -i -e "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk dpf/dgl/*.mk - -# -------------------------------------------------------------------------------------------------------------------------------- - -cd bin - -mkdir -p tmp -rm -rf tmp/* - -NAME="$1" - -export CFLAGS="-mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -arch i386 -arch x86_64" -export CXXFLAGS=$CFLAGS -export LDFLAGS=$CFLAGS -export MACOS="true" -export MACOS_OLD="true" - -make -C .. clean -make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -C .. -j 4 -rm -rf *ladspa* *dssi* -mkdir -p "$NAME-macOS" -mv *.lv2 *.vst "$NAME-macOS" -for MODGUI in ${MODGUIS[@]}; do - cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macOS"/$MODGUI.lv2/ - cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macOS"/$MODGUI.lv2/modgui.ttl -done -cp "../utils/README-MacOS.txt" "$NAME-macOS/README.txt" -compressFolderAsZip "$NAME-macOS" -rm -rf tmp/* - -make -C .. clean - -cd .. - -# -------------------------------------------------------------------------------------------------------------------------------- - -sed -i -e "s|-D_MD_MP_WORKAROUND|-MD -MP|" */*.mk dpf/dgl/*.mk diff --git a/utils/pack-macos-10.08.sh b/utils/pack-macos-10.08.sh deleted file mode 100755 index cfd99932..00000000 --- a/utils/pack-macos-10.08.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -set -e - -# -------------------------------------------------------------------------------------------------------------------------------- -# extract debs and pack them - -function compressFolderAsZip() { -rm -f "$1.zip" -zip -X -r "$1.zip" "$1" -rm -r "$1" -} - -# -------------------------------------------------------------------------------------------------------------------------------- - -if [ "$1" == "" ]; then -echo Missing argument -exit -fi - -sed -i -e "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk - -# -------------------------------------------------------------------------------------------------------------------------------- - -NAME="$1" - -rm -rf "$NAME-macOS" - -export CFLAGS="-mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -arch i386 -arch x86_64 -mfpmath=sse" -export CXXFLAGS="$CFLAGS" -export LDFLAGS="$CFLAGS" -export MACOS="true" -export MACOS_OLD="true" - -make clean -make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -j 2 -rm -rf bin/*ladspa* bin/*dssi* -mkdir -p "$NAME-macOS" -mv bin/*.lv2 bin/*.vst "$NAME-macOS" -cp utils/README-MacOS.txt "$NAME-macOS/README.txt" -compressFolderAsZip "$NAME-macOS" - -make clean - -# -------------------------------------------------------------------------------------------------------------------------------- - -sed -i -e "s|-D_MD_MP_WORKAROUND|-MD -MP|" */*.mk diff --git a/utils/pack-macos-10.10.sh b/utils/pack-macos-10.10.sh deleted file mode 100755 index eb22af7c..00000000 --- a/utils/pack-macos-10.10.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/bash - -set -e - -MODGUIS=("Kars" "MVerb" "MVerb" "Nekobi" "PingPongPan") - -# -------------------------------------------------------------------------------------------------------------------------------- -# extract debs and pack them - -function compressFolderAsZip() { -rm -f "$1.zip" -zip -X -r "$1" "$1" -rm -r "$1" -} - -# -------------------------------------------------------------------------------------------------------------------------------- - -if [ "$1" == "" ]; then -echo Missing argument -exit -fi - -sed -i -e "s|-MD -MP|-D_MD_MP_WORKAROUND|" */*.mk dpf/dgl/*.mk - -# -------------------------------------------------------------------------------------------------------------------------------- - -cd bin - -mkdir -p tmp -rm -rf tmp/* - -NAME="$1" - -export CFLAGS="-mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -arch i386 -arch x86_64 -DHAVE_CPP11_SUPPORT=0" -export CXXFLAGS="$CFLAGS" -export LDFLAGS="$CFLAGS" -export MACOS="true" - -make -C .. clean -make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false -C .. -j 4 -rm -rf *ladspa* *dssi* -mkdir -p "$NAME-macOS" -mv *.lv2 *.vst "$NAME-macOS" -for MODGUI in ${MODGUIS[@]}; do - cp -r ../modguis/$MODGUI.modgui/modgui "$NAME-macOS"/$MODGUI.lv2/ - cp ../modguis/$MODGUI.modgui/manifest.ttl "$NAME-macOS"/$MODGUI.lv2/modgui.ttl -done -cp "../utils/README-MacOS.txt" "$NAME-macOS/README.txt" -compressFolderAsZip "$NAME-macOS" -rm -rf tmp/* - -make -C .. clean - -cd .. - -# -------------------------------------------------------------------------------------------------------------------------------- - -sed -i -e "s|-D_MD_MP_WORKAROUND|-MD -MP|" */*.mk dpf/dgl/*.mk diff --git a/utils/pack-windows-cross.sh b/utils/pack-windows-cross.sh deleted file mode 100755 index d2ec69c1..00000000 --- a/utils/pack-windows-cross.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash - -set -e - -# -------------------------------------------------------------------------------------------------------------------------------- -# extract debs and pack them - -function compressFolderAsZip() { -rm -f "$1.zip" -zip -X -r "$1.zip" "$1" -rm -r "$1" -} - -# -------------------------------------------------------------------------------------------------------------------------------- - -if [ "$1" == "" ]; then -echo Missing argument -exit -fi - -# -------------------------------------------------------------------------------------------------------------------------------- - -NAME="$1" - -rm -rf "$NAME-win32bit" -rm -rf "$NAME-win64bit" - -_mingw32-build make clean -_mingw32-build make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false HAVE_CAIRO=false WINDOWS=true -j8 -for i in `ls bin/*-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done -rm -rf bin/*ladspa* bin/*dssi* bin/*vst* -mkdir -p "$NAME-win32bit" -mv bin/*.dll bin/*.lv2/ "$NAME-win32bit" -cp utils/README-Windows.txt "$NAME-win32bit/README.txt" -compressFolderAsZip "$NAME-win32bit" - -_mingw64-build make clean -_mingw64-build make HAVE_JACK=false HAVE_LIBLO=false HAVE_PROJM=false HAVE_CAIRO=false WINDOWS=true -j8 -for i in `ls bin/*-vst.dll`; do mv $i `echo $i | awk 'sub("-vst","")'`; done -rm -rf bin/*ladspa* bin/*dssi* bin/*vst* -mkdir -p "$NAME-win64bit" -mv bin/*.dll bin/*.lv2/ "$NAME-win64bit" -cp utils/README-Windows.txt "$NAME-win64bit/README.txt" -compressFolderAsZip "$NAME-win64bit" - -_mingw64-build make clean - -# --------------------------------------------------------------------------------------------------------------------------------