Browse Source

Set up release archives

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.5
falkTX 5 months ago
parent
commit
b88775c376
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
7 changed files with 125 additions and 277 deletions
  1. +118
    -8
      .github/workflows/build.yml
  2. +7
    -1
      .github/workflows/irc.yml
  3. +0
    -56
      utils/pack-linux.sh
  4. +0
    -59
      utils/pack-macos-10.06.sh
  5. +0
    -47
      utils/pack-macos-10.08.sh
  6. +0
    -58
      utils/pack-macos-10.10.sh
  7. +0
    -48
      utils/pack-windows-cross.sh

+ 118
- 8
.github/workflows/build.yml View File

@@ -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


+ 7
- 1
.github/workflows/irc.yml View File

@@ -1,6 +1,12 @@
name: irc

on: [push]
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
notification:


+ 0
- 56
utils/pack-linux.sh View File

@@ -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

# --------------------------------------------------------------------------------------------------------------------------------

+ 0
- 59
utils/pack-macos-10.06.sh View File

@@ -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

+ 0
- 47
utils/pack-macos-10.08.sh View File

@@ -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

+ 0
- 58
utils/pack-macos-10.10.sh View File

@@ -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

+ 0
- 48
utils/pack-windows-cross.sh View File

@@ -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

# --------------------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save