Browse Source

CI: Put plugin build steps outside yml file, for caching

tags/v1.0
falkTX 4 years ago
parent
commit
829a07dce6
2 changed files with 26 additions and 13 deletions
  1. +2
    -13
      .travis.yml
  2. +24
    -0
      .travis/script.sh

+ 2
- 13
.travis.yml View File

@@ -13,10 +13,7 @@ cache:

env:
global:
- PLUGINS_BASE="abgate artyfx caps die-plugins dpf-plugins fomp mda"
- PLUGINS_CROSS="blop"
- PLUGINS_DISTRHO="distrho-ports-arctican distrho-ports-dexed distrho-ports-drowaudio distrho-ports-klangfalter distrho-ports-luftikus distrho-ports-obxd distrho-ports-pitched-delay distrho-ports-refine"
# distrho-ports-tal-plugins distrho-ports-temper distrho-ports-vex distrho-ports-wolpertinger"
- BOOTSTRAP_VERSION=1

jobs:
include:
@@ -27,7 +24,6 @@ jobs:
dist: bionic
env:
- TARGET="linux"
- PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS}"

# linux with macOS cross-compilation
- name: "macOS cross-compiled"
@@ -36,7 +32,6 @@ jobs:
dist: bionic
env:
- TARGET="macos-old"
- PLUGINS="${PLUGINS_BASE}"

# linux with win32 cross-compilation
- name: "win32 cross-compiled"
@@ -45,7 +40,6 @@ jobs:
dist: bionic
env:
- TARGET="win32"
- PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"
services:
- xvfb

@@ -56,7 +50,6 @@ jobs:
dist: bionic
env:
- TARGET="win64"
- PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"
services:
- xvfb

@@ -66,7 +59,6 @@ jobs:
osx_image: xcode9.4
env:
- TARGET="macos"
- PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"

# macOS native universal build
#- name: "macOS native universal"
@@ -74,7 +66,6 @@ jobs:
#osx_image: xcode12u
#env:
#- TARGET="macos-universal"
#- PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"

before_install:
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh
@@ -85,9 +76,7 @@ install:
script:
- bash ${TRAVIS_BUILD_DIR}/bootstrap-plugins.sh ${TARGET}
- bash ${TRAVIS_BUILD_DIR}/.cleanup.sh ${TARGET}
- bash ${TRAVIS_BUILD_DIR}/build-plugins.sh ${TARGET} ${PLUGINS}
- bash ${TRAVIS_BUILD_DIR}/.cleanup.sh ${TARGET}
- bash ${TRAVIS_BUILD_DIR}/pack-plugins.sh ${TARGET} ${PLUGINS}
- bash ${TRAVIS_BUILD_DIR}/.travis/script.sh

deploy:
provider: releases


+ 24
- 0
.travis/script.sh View File

@@ -0,0 +1,24 @@
#!/bin/bash

set -e

PLUGINS_BASE="abgate artyfx caps die-plugins dpf-plugins fomp mda"
PLUGINS_CROSS="blop"
PLUGINS_DISTRHO1="distrho-ports-arctican distrho-ports-dexed distrho-ports-drowaudio distrho-ports-klangfalter distrho-ports-luftikus distrho-ports-obxd distrho-ports-pitched-delay"
PLUGINS_DISTRHO2="distrho-ports-refine distrho-ports-tal-plugins distrho-ports-temper distrho-ports-vex distrho-ports-wolpertinger"

if [ "${TARGET}" = "linux" ]; then
PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS}"
elif [ "${TARGET}" = "macos-old" ]; then
PLUGINS="${PLUGINS_BASE}"
elif [ "${TARGET}" = "macos" ] || [ "${TARGET}" = "macos-universal" ]; then
PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO1}"
elif [ "${TARGET}" = "win32" ] || [ "${TARGET}" = "win64" ]; then
PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO1}"
else
exit 1
fi

${TRAVIS_BUILD_DIR}/build-plugins.sh ${TARGET} ${PLUGINS}
${TRAVIS_BUILD_DIR}/.cleanup.sh ${TARGET}
${TRAVIS_BUILD_DIR}/pack-plugins.sh ${TARGET} ${PLUGINS}

Loading…
Cancel
Save