2018-01-28 15:34:11 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2018-02-04 20:23:34 +00:00
|
|
|
build_x86_64:
|
2018-02-04 20:52:54 +00:00
|
|
|
working_directory: ~/${CIRCLE_PROJECT_REPONAME}
|
2018-01-28 15:34:11 +00:00
|
|
|
docker:
|
2018-02-04 20:03:32 +00:00
|
|
|
- image: heroku/heroku:16
|
2018-01-28 15:34:11 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2018-02-04 20:09:26 +00:00
|
|
|
- run: apt-get update; apt-get install -y --no-install-recommends cmake autoconf automake libtool git make g++ liblog4cpp5-dev liblivemedia-dev
|
2018-02-04 17:46:17 +00:00
|
|
|
- run: cmake . && make
|
|
|
|
- run: cpack .
|
|
|
|
- run: cpack -G TGZ .
|
2018-02-04 20:13:12 +00:00
|
|
|
- run: mkdir pkg && cp *.deb pkg && cp *.tar.gz pkg
|
2018-02-04 17:42:23 +00:00
|
|
|
- store_artifacts:
|
2018-02-04 17:43:32 +00:00
|
|
|
path: pkg
|
2018-02-04 20:23:34 +00:00
|
|
|
|
|
|
|
build_rpi:
|
2018-02-04 20:52:54 +00:00
|
|
|
working_directory: ~/${CIRCLE_PROJECT_REPONAME}
|
2018-02-04 20:23:34 +00:00
|
|
|
docker:
|
|
|
|
- image: heroku/heroku:16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt-get update; apt-get install -y --no-install-recommends cmake autoconf automake libtool git make
|
|
|
|
- run: git clone --depth 1 https://github.com/raspberrypi/tools.git rpi_tools
|
|
|
|
- run: echo 'export PATH=${CIRCLE_WORKING_DIRECTORY}/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH' >> $BASH_ENV
|
|
|
|
- run: cmake -DCMAKE_TOOLCHAIN_FILE=${CIRCLE_WORKING_DIRECTORY}/raspberry.toolchain . && make
|
|
|
|
- run: cpack .
|
|
|
|
- run: cpack -G TGZ .
|
|
|
|
- run: mkdir pkg && cp *.deb pkg && cp *.tar.gz pkg
|
|
|
|
- store_artifacts:
|
|
|
|
path: pkg
|
|
|
|
|
2018-02-04 20:52:54 +00:00
|
|
|
build_mips:
|
|
|
|
working_directory: ~/${CIRCLE_PROJECT_REPONAME}
|
|
|
|
docker:
|
|
|
|
- image: heroku/heroku:16
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt-get update; apt-get install -y --no-install-recommends cmake autoconf automake libtool git make g++-mips-linux-gnu
|
|
|
|
- run: cmake -DCMAKE_TOOLCHAIN_FILE=${CIRCLE_WORKING_DIRECTORY}/mips.toolchain . && make
|
|
|
|
- run: cpack .
|
|
|
|
- run: cpack -G TGZ .
|
|
|
|
- run: mkdir pkg && cp *.deb pkg && cp *.tar.gz pkg
|
|
|
|
- store_artifacts:
|
|
|
|
path: pkg
|
|
|
|
|
2018-02-04 20:23:34 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- build_x86_64
|
|
|
|
- build_rpi
|
2018-02-04 20:52:54 +00:00
|
|
|
- build_mips
|