Browse Source

Add tarball CI step

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.1
falkTX 2 years ago
parent
commit
a367c7474e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 99 additions and 9 deletions
  1. +43
    -0
      .github/workflows/build.yml
  2. +56
    -9
      Makefile

+ 43
- 0
.github/workflows/build.yml View File

@@ -341,6 +341,49 @@ jobs:
!bin/*-ladspa.dll
!bin/*-dssi.dll

source-tarball:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -yqq libgl1-mesa-dev libx11-dev libxcursor-dev libxext-dev libxrandr-dev
- name: Create source tarball
run: |
make tarball
- name: Set sha8 (non-release)
if: startsWith(github.ref, 'refs/tags/') != true
id: slug1
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
- name: Set sha8 (release)
if: startsWith(github.ref, 'refs/tags/')
id: slug2
run: echo "::set-output name=sha8::$(echo ${{ github.ref_name }})"
- name: Set sha8
id: slug
run: echo "::set-output name=sha8::$(echo ${{ steps.slug1.outputs.sha8 || steps.slug2.outputs.sha8 }})"
- uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-source-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
path: |
/home/runner/*.tar.xz
/home/runner/*/*.tar.xz
/home/runner/*/*/*.tar.xz
- 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: |
/home/runner/*.tar.xz
/home/runner/*/*.tar.xz
/home/runner/*/*/*.tar.xz

plugin-validation:
runs-on: ubuntu-20.04
steps:


+ 56
- 9
Makefile View File

@@ -6,18 +6,22 @@

include dpf/Makefile.base.mk

# --------------------------------------------------------------
# also set in:
# plugins/Common/IldaeilPlugin.cpp `getVersion`
VERSION = 1.1

# ---------------------------------------------------------------------------------------------------------------------
# Build targets

all: carla dgl plugins gen

# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Build config

PREFIX ?= /usr/local
DESTDIR ?=

# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Carla config

ifeq ($(WASM),true)
@@ -43,7 +47,7 @@ ifneq ($(USE_SYSTEM_CARLA_BINS),true)
CARLA_TARGETS += bridges-plugin bridges-ui
endif

# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# DPF bundled plugins

ifneq ($(MACOS),true)
@@ -52,7 +56,7 @@ ILDAEIL_MIDI_ARGS = VST2_FILENAME=Ildaeil.vst/Ildaeil-MIDI$(LIB_EXT) CLAP_FILENA
ILDAEIL_SYNTH_ARGS = VST2_FILENAME=Ildaeil.vst/Ildaeil-Synth$(LIB_EXT) CLAP_FILENAME=Ildaeil.clap/Ildaeil-Synth.clap
endif

# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# Check for X11+OpenGL dependencies

ifneq ($(HAIKU_OR_MACOS_OR_WASM_OR_WINDOWS),true)
@@ -75,7 +79,7 @@ endif

endif

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

carla: dgl
$(MAKE) $(CARLA_EXTRA_ARGS) -C carla $(CARLA_TARGETS)
@@ -100,7 +104,7 @@ else
gen:
endif

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

install:
install -d $(DESTDIR)$(PREFIX)/lib/clap/Ildaeil.clap
@@ -122,7 +126,7 @@ install:
cp -rL bin/Ildaeil-FX.vst3/Contents/*-* $(DESTDIR)$(PREFIX)/lib/vst3/Ildaeil-FX.vst3/Contents/
cp -rL bin/Ildaeil-Synth.vst3/Contents/*-* $(DESTDIR)$(PREFIX)/lib/vst3/Ildaeil-Synth.vst3/Contents/

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

clean:
$(MAKE) distclean -C carla
@@ -135,6 +139,49 @@ clean:
rm -f dpf-widgets/opengl/*.d
rm -f dpf-widgets/opengl/*.o

# --------------------------------------------------------------
# ---------------------------------------------------------------------------------------------------------------------
# tarball target, generating release source-code tarballs ready for packaging

TAR_ARGS = \
--exclude=".appveyor*" \
--exclude=".ci*" \
--exclude=".clang*" \
--exclude=".drone*" \
--exclude=".editor*" \
--exclude=".git*" \
--exclude="*.kdev*" \
--exclude=".travis*" \
--exclude=".vscode*" \
--exclude="*.d" \
--exclude="*.o" \
--exclude=bin \
--exclude=build \
--exclude=carla/data \
--exclude=carla/source/frontend \
--exclude=carla/source/interposer \
--exclude=carla/source/libjack \
--exclude=carla/source/native-plugins/resources \
--exclude=carla/source/rest \
--exclude=carla/source/tests.old \
--exclude=carla/source/theme \
--exclude=carla/resources \
--exclude=dpf/build \
--exclude=dpf/cmake \
--exclude=dpf/examples \
--exclude=dpf/lac \
--exclude=dpf/tests \
--exclude=dpf-widgets/generic \
--exclude=dpf-widgets/opengl/Blendish* \
--exclude=dpf-widgets/opengl/DearImGuiColorTextEditor* \
--exclude=dpf-widgets/tests \
--transform='s,^\.\.,-.-.,' \
--transform='s,^\.,Ildaeil-$(VERSION),' \
--transform='s,^-\.-\.,..,' \

tarball:
rm -f ../Ildaeil-$(VERSION).tar.xz
tar -c --lzma $(TAR_ARGS) -f ../Ildaeil-$(VERSION).tar.xz .

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

.PHONY: carla plugins

Loading…
Cancel
Save