cmake.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Tests
  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. strategy:
  10. matrix:
  11. family: [F0, F1, F2, F3, F4, F7, G0, G4, H7, L0, L1, L4, L5]
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Install ARM toolchain
  15. run: sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi
  16. - name: Create build directory for tests/fetch
  17. run: cmake -E make_directory ${{runner.workspace}}/tests/fetch/build
  18. - name: Configure tests/fetch
  19. shell: bash
  20. working-directory: ${{runner.workspace}}/tests/fetch/build
  21. run: cmake -DTEST_FAMILIES=${{ matrix.family }} $GITHUB_WORKSPACE/tests/fetch/
  22. - name: Build tests/fetch
  23. working-directory: ${{runner.workspace}}/tests/fetch/build
  24. shell: bash
  25. run: cmake --build . --config $BUILD_TYPE
  26. - name: Create build directory for tests/cmsis
  27. run: cmake -E make_directory ${{runner.workspace}}/tests/cmsis/build
  28. - name: Configure tests/cmsis
  29. shell: bash
  30. working-directory: ${{runner.workspace}}/tests/cmsis/build
  31. run: cmake -DTEST_FAMILIES=${{ matrix.family }} -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/cmsis/
  32. - name: Build tests/cmsis
  33. working-directory: ${{runner.workspace}}/tests/cmsis/build
  34. shell: bash
  35. run: cmake --build . --config $BUILD_TYPE
  36. - name: Create build directory for tests/hal
  37. run: cmake -E make_directory ${{runner.workspace}}/tests/hal/build
  38. - name: Configure tests/hal
  39. shell: bash
  40. working-directory: ${{runner.workspace}}/tests/hal/build
  41. run: cmake -DTEST_FAMILIES=${{ matrix.family }} -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/hal/
  42. - name: Build tests/hal
  43. working-directory: ${{runner.workspace}}/tests/hal/build
  44. shell: bash
  45. run: cmake --build . --config $BUILD_TYPE