|
7 | 7 |
|
8 | 8 | # https://help.github.com/en/articles/virtual-environments-for-github-actions#supported-virtual-environments |
9 | 9 | runs-on: ubuntu-18.04 |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + python-version: [3.6, 3.7, 3.8] |
10 | 13 |
|
11 | 14 | steps: |
12 | | - - uses: actions/checkout@v1 |
13 | | - - run: sudo apt-get install libopencv-dev libgflags-dev # dependencies |
14 | | - - run: sh scripts/download-test-data.sh |
15 | | - - run: sh scripts/download-tinyvgg-model.sh |
16 | | - - run: sh scripts/download-openpose-thin-model.sh |
17 | | - - run: sh scripts/download-openpose-res50-model.sh |
18 | | - - run: sh scripts/download-openpose-coco-model.sh |
19 | | - - run: cmake . -DBUILD_TESTS=1 -DBUILD_FAKE=1 -DBUILD_EXAMPLES=1 -DBUILD_LIB=1 -DBUILD_USER_CODES=0 -DEXECUTABLE_OUTPUT_PATH=./bin |
| 15 | + - uses: actions/checkout@v2 |
| 16 | + - name: Set up Python ${{ matrix.python-version }} |
| 17 | + uses: actions/setup-python@v2 |
| 18 | + with: |
| 19 | + python-version: ${{ matrix.python-version }} |
| 20 | + - name: Initialize Python Env |
| 21 | + run: python3 -m pip install --upgrade pip |
| 22 | + - name: Install System Dependencies |
| 23 | + run: sudo apt-get install libopencv-dev libgflags-dev # dependencies |
| 24 | + - name: Check download scripts. |
| 25 | + run: | |
| 26 | + sh scripts/download-test-data.sh |
| 27 | + sh scripts/download-tinyvgg-model.sh |
| 28 | + sh scripts/download-openpose-thin-model.sh |
| 29 | + sh scripts/download-openpose-res50-model.sh |
| 30 | + sh scripts/download-openpose-coco-model.sh |
| 31 | + - name: Build Project(NO GPU) |
| 32 | + run: cmake . -DBUILD_TESTS=1 -DBUILD_FAKE=1 -DBUILD_EXAMPLES=1 -DBUILD_LIB=1 -DBUILD_USER_CODES=0 -DEXECUTABLE_OUTPUT_PATH=./bin |
20 | 33 | - run: cmake --build . --config Release |
21 | 34 |
|
22 | 35 | # - run: ctest -C Release |
|
0 commit comments