Created
October 10, 2020 00:17
-
-
Save cyrusbehr/28b2c2807c4e3a32364f6af29848c46e to your computer and use it in GitHub Desktop.
Sample circleCI config.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 2.1 | |
| jobs: | |
| build: | |
| docker: | |
| - image: cyrusbehr/sdk_design | |
| steps: | |
| - checkout | |
| - restore_cache: | |
| key: 3rdparty_ncnn-{{ .Environment.CIRCLE_JOB }}-{{ checksum "./3rdparty/build_ncnn.sh" }} | |
| - restore_cache: | |
| key: 3rdparty_opencv-{{ .Environment.CIRCLE_JOB }}-{{ checksum "./3rdparty/build_opencv.sh" }} | |
| - run: | |
| name: Build 3rd party libraries | |
| command: | | |
| cd ~/project/3rdparty | |
| ./build_pybind11.sh | |
| ./build_catch.sh | |
| test -e ncnn-20200916 || ./build_ncnn.sh | |
| test -e opencv-4.4.0 || ./build_opencv.sh | |
| - save_cache: | |
| key: 3rdparty_ncnn-{{ .Environment.CIRCLE_JOB }}-{{ checksum "./3rdparty/build_ncnn.sh" }} | |
| paths: | |
| - ./3rdparty/ncnn-20200916 | |
| - save_cache: | |
| key: 3rdparty_opencv-{{ .Environment.CIRCLE_JOB }}-{{ checksum "./3rdparty/build_opencv.sh" }} | |
| paths: | |
| - ./3rdparty/opencv-4.4.0 | |
| - run: | |
| name: Build for amd64 | |
| command: | | |
| cd ~/project | |
| mkdir build_amd64 | |
| cd build_amd64 | |
| cmake .. | |
| make -j4 | |
| - run: | |
| name: Run unit tests | |
| command: | | |
| cd ~/project/build_amd64 | |
| ./run_tests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment