mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-08 01:10:33 +00:00
75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
version: 2
|
|
jobs:
|
|
build_x86_64:
|
|
working_directory: ~/v4l2rtspServer
|
|
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++ liblog4cpp5-dev liblivemedia-dev
|
|
- run: cmake . && make
|
|
- run: cpack .
|
|
- run: cpack -G TGZ .
|
|
- run: mkdir -p /distrib && cp *.deb /distrib && cp *.tar.gz /distrib
|
|
- persist_to_workspace:
|
|
root: /
|
|
paths:
|
|
- distrib
|
|
|
|
build_rpi:
|
|
working_directory: ~/v4l2rtspServer
|
|
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 -p /distrib && cp *.deb /distrib && cp *.tar.gz /distrib
|
|
- persist_to_workspace:
|
|
root: /
|
|
paths:
|
|
- distrib
|
|
|
|
build_mips:
|
|
working_directory: ~/v4l2rtspServer
|
|
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 -p /distrib && cp *.deb /distrib && cp *.tar.gz /distrib
|
|
- persist_to_workspace:
|
|
root: /
|
|
paths:
|
|
- distrib
|
|
|
|
build_artifact:
|
|
working_directory: ~/v4l2rtspServer
|
|
docker:
|
|
- image: heroku/heroku:16
|
|
steps:
|
|
- attach_workspace:
|
|
at: /distrib
|
|
- store_artifacts:
|
|
path: /distrib
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- build_x86_64
|
|
- build_rpi
|
|
- build_mips
|
|
- build_artifact:
|
|
requires:
|
|
- build_x86_64
|
|
- build_rpi
|
|
- build_mips
|