cmake.yml 782 B

123456789101112131415161718192021222324252627282930
  1. name: CMake
  2. on: [push]
  3. env:
  4. # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
  5. BUILD_TYPE: Release
  6. jobs:
  7. test-ubuntu:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - uses: actions/checkout@v2
  11. - name: Install ARM toolchain
  12. run: sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi
  13. - name: Create build directory for tests/fetch
  14. run: cmake -E make_directory ${{runner.workspace}}/tests/fetch/build
  15. - name: Configure tests/fetch
  16. shell: bash
  17. working-directory: ${{runner.workspace}}/tests/fetch/build
  18. run: cmake $GITHUB_WORKSPACE/tests/fetch/
  19. - name: Build
  20. working-directory: ${{runner.workspace}}/tests/fetch/build
  21. shell: bash
  22. run: cmake --build . --config $BUILD_TYPE