Skip to content

Commit

Permalink
Fix up the travis and appveyor builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
agraef committed Aug 27, 2020
1 parent c99314d commit 2c294b5
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 27 deletions.
33 changes: 18 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,56 @@ matrix:
- os: osx
compiler: clang
osx_image: xcode9.1
env: release_arch=Darwin-amd64-32
env: release_arch=darwin-x86_64
install:
- git submodule update --init --recursive
- curl -o ./llvm.tar.xz -L https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-darwin-apple.tar.xz
- tar xzf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-darwin-apple llvm
script:
- mkdir build && cd build
- cmake .. -GXcode -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
- cmake .. -GXcode -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_INSTALL_PREFIX=/
- cmake --build . --config Release --target faustgen_tilde_project
before_deploy:
- cd $TRAVIS_BUILD_DIR/build
- cmake --install . --prefix .
- cp -r ../external faustgen2~
- mkdir faustgen2~/libs
- cp ../faust/libraries/*.lib ../faust/libraries/old/*.lib faustgen2~/libs
- cp ../README.md ../LICENSE faustgen2~
- chmod 0444 faustgen2~/default.dsp
- zip -r "../faustgen2_tilde-$release_arch.zip" faustgen2~
- zip -r "../pd-faustgen2-$release_arch.zip" faustgen2~
before_deploy:
- cd $TRAVIS_BUILD_DIR
- ls *.zip
- os: linux
compiler: gcc
env: release_arch=Linux-amd64-32
env: release_arch=linux-x86_64
install:
- git submodule update --init --recursive
- sudo apt-get install -y pkg-config libedit-dev
- curl -o ./llvm.tar.xz https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
- tar xvf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04 llvm
script:
- mkdir build && cd build
- cmake .. -DCMAKE_C_FLAGS=-m64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release -DINSTALL_DIR=faustgen2~
- cmake .. -DCMAKE_C_FLAGS=-m64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_BUILD_TYPE=Release -DINSTALL_DIR=faustgen2~ -DCMAKE_INSTALL_PREFIX=/
- cmake --build . --config Release --target faustgen_tilde_project
before_deploy:
- cd $TRAVIS_BUILD_DIR/build
- cmake --install . --prefix .
- make install DESTDIR=$PWD
- cp ../README.md ../LICENSE faustgen2~
- chmod 0444 faustgen2~/default.dsp
- zip -r "../faustgen2_tilde-$release_arch.zip" faustgen2~
- cd .. && ./make-dist.sh
- zip -r "../pd-faustgen2-$release_arch.zip" faustgen2~
before_deploy:
- cd $TRAVIS_BUILD_DIR
- ./make-dist.sh
- ls *.zip *.tar.gz
deploy:
provider: releases
skip_cleanup: true
prerelease: true
draft: true
overwrite: true
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
api_key:
secure: nmGGuop/gOgDJln6ee6MNhVppRQ54+ut7XZb1xKX3ByOnT6Xrkh4y7TArNIbseiSLCZAcupyU78W8k5xT8A2vwjiMdBy8lPoeVaOo/6U1eLCLGp/c+y0vH7EBGUr/pV7nUgBLxn24HB2M1Sc9xV5BguDcnB+OTffHyYcBpB7bcDC3KU+ZYoxWNGBv/T08/p1H5TEyuPFqIgaL+yQf12fj+O7hyt3eaPauKTZUsS8rDRj5FvDOCPpw5qFu3DCwRmgXDIBKLLBMeE2Eiekb/aMCV798c7ZcUZ9yKg3LPpJlnmsnnrlRXEbANqoGQg8twMeML2U0hsDzGC0dYZTOCrusnQIF3fq3smzdpYPsPAd0y5JNKnrbYFz/DmaygmU9yGurXnhEXQr14oc6v38+7lBhKUMqLDdEdZyE9Deg+yzy+dBIQa79qCDHgybztma6Qh9CNCXlBsvuKrNU+wqzoKUZfUrKRgDsRh9H/X8sDviaf799iCOXCPk4vNPl+E5W05IDPNPhhOzgf3gEJqE/Yzt8+K0YovHF/hqESYl2EDpJBoK1hKRyr9NWQnKbZOk7v1/OQuuBxCEhB5aFPRF2E68l/O+QTKV+kW8c9TxjxrsRqQ1rMTruKNGnXH62UBLL6EWbQjEuqx/7eK9d/LPzhCmSO2uCTpXI6qddSx9vt8u7FE=
file_glob: true
file:
- "faustgen2_tilde-$release_arch-sources.zip"
- 'pd-faustgen2-*.zip'
- '*.tar.gz'
on:
repo: agraef/pd-faustgen
Expand Down
35 changes: 24 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,53 @@
os: Visual Studio 2019
version: 2.0.0-rc5
image: Visual Studio 2019
branches:
only:
- faustgen2

skip_non_tags: true

environment:
matrix:
#- platform: Win32
# compiler: "Visual Studio 14 2015"
# configuration: Debug
# not working yet
# - platform: Win32
# compiler: "Visual Studio 16 2019"
# configuration: Release
# llvm_package: https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-9.0.0-windows-x86-mt.zip
# release_arch: "windows-x86"
- platform: x64
compiler: "Visual Studio 16 2019"
configuration: Release
release_arch: "Windows-amd64-32"
llvm_package: https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-9.0.0-windows-x64-mt.zip
release_arch: "windows-x86_64"

install:
- git submodule update --init --recursive
- curl -L https://github.com/CICM/pd-faustgen/releases/download/v0.0.0/llvm-9.0.0-windows-x64-mt.zip -o llvm.zip
- curl -L %llvm_package% -o llvm.zip
- 7z x llvm.zip
- curl http://faust.grame.fr/images/faust-quick-reference.pdf -o ./external/faust-quick-reference.pdf
build_script:
- mkdir build && cd build
- cmake .. -G "%compiler%" -A x64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
- cmake .. -G "%compiler%" -A %platform% -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
- msbuild faustgen2~.sln /nologo /p:config=%configuration% /p:plateform=%platform%
after_build:
- cd %APPVEYOR_BUILD_FOLDER%
- del /F /Q llvm.zip
- del /F /S /Q /A external\*.pdb
- del /F /S /Q /A external\*.ilk
- del /F /S /Q /A external\*.lib
- del /F /S /Q /A external\*.exp
- cd build
- cmake --install . --prefix .
- copy ..\README.md ..\LICENSE faustgen2~
- copy ..\README.md faustgen2~
- copy ..\LICENSE faustgen2~
- attrib +R faustgen2~\default.dsp
- 7z a "..\faustgen2_tilde-%release_arch%.zip" faustgen2~
- 7z a "..\pd-faustgen2-%release_arch%.zip" faustgen2~

artifacts:
- path: '*.zip'

deploy:
provider: GitHub
prerelease: true
overwrite: true
draft: true
auth_token:
secure: 3+K3lmZ4ioB5/0y0tU7mhpAbTHYh7OiuKU7Djk5rSHFaPWeyOwCPHOzcjstLq69N
Expand Down
2 changes: 1 addition & 1 deletion src/faustgen_tilde.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "faust_tilde_io.h"
#include "faust_tilde_options.h"

#define FAUSTGEN_VERSION_STR "2.0.0-rc1"
#define FAUSTGEN_VERSION_STR "2.0.0-rc5"
#define MAXFAUSTSTRING 4096

// ag: GUI update interval for the passive controls (msec). A zero value will
Expand Down

0 comments on commit 2c294b5

Please sign in to comment.