dlib/.github/workflows/build_cmake.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
name: CMake
on:
pull_request:
push:
env:
config: Release
build_dir: build
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
steps:
- uses: actions/checkout@v2
- name: Configure
working-directory: ${{ github.workspace }}/dlib/test
run: cmake . -B ${{ env.build_dir }}
- name: Build just tests
GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
working-directory: ${{ github.workspace }}/dlib/test
2022-02-07 08:48:18 +08:00
run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --target dtest --parallel 8
GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
- name: Test
working-directory: ${{ github.workspace }}/dlib/test/${{ env.build_dir }}
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
./${{ env.config }}/dtest.exe --runall -q
GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
elif [ "$RUNNER_OS" == "macOS" ]; then
./dtest --runall --no_test_timer -q
GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
else
./dtest --runall -q
GitHub actions (#2289) * add github actions from "ptheywood/cuda-cmake-github-actions" * fix typo * rename * Revert "rename" This reverts commit ded445f3bb5b3190ec4ddc62876cb45b60d7948e. * add cudnn env variable * remove old cuda configs and try to fix installation * add run tests * fix test path * actually build tests * fix missing $ * fix syntax * debug test path * fix test build dir * fix cmake syntax * fix working directory * Revert "debug test path" This reverts commit 6d5b4e7a1fa9270281ad92f863a3ea4fe0b718a0. * uncomment other configurations * fix run test path * fix test run dir again * syntax * it's really not my day... * remove incompatible configs and make tests run silently * add initial windows script from ptheywood/cuda-cmake-github-actions * fix windows script path * add test for windows * remove dot slash * install cublas_dev * try adding cudnn (I really need a Windows machine to test this) * remove windows workflow scripts * try config with ubuntu 20.10 * fix syntax error * try to fix DLIB not using CUDA * try again with ubuntu 20.04 * remove backticks * remove superfluous configure step * fix cuda parsing for v10.2 * debug test * change working dir... * do not run test silently * install nvidia drivers * only install server drivers * load nvidia kernel module * move module loading to script * try to fix kernel module loading * add simple github actions workflow * add simple github actions workflow * fix path? * fix config step * only build the dtest target * handle Windows path * use ./ on windows * debugging * debugging * debugging * except for the timer test on macOS, the rest works * remove cuda custom tests, for the moment * build in Relase mode to try to avoid timeout on Windows * debugging * actually change build config * do not test the timer on macOS * try building python
2022-02-03 11:00:56 +08:00
fi;
- name: Build examples, etc
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
working-directory: ${{ github.workspace }}/dlib/test
2022-02-07 08:48:18 +08:00
run: cmake --build ${{ env.build_dir }} --config ${{ env.config }} --parallel 8