| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- name: Tests
- on: [push]
- env:
- # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
- BUILD_TYPE: Release
- jobs:
- test-ubuntu:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - name: Install ARM toolchain
- run: sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi
- - name: Create build directory for tests/fetch
- run: cmake -E make_directory ${{runner.workspace}}/tests/fetch/build
- - name: Configure tests/fetch
- shell: bash
- working-directory: ${{runner.workspace}}/tests/fetch/build
- run: cmake $GITHUB_WORKSPACE/tests/fetch/
- - name: Build tests/fetch
- working-directory: ${{runner.workspace}}/tests/fetch/build
- shell: bash
- run: cmake --build . --config $BUILD_TYPE
- - name: Create build directory for tests/cmsis
- run: cmake -E make_directory ${{runner.workspace}}/tests/cmsis/build
- - name: Configure tests/cmsis
- shell: bash
- working-directory: ${{runner.workspace}}/tests/cmsis/build
- run: cmake -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/cmsis/
- - name: Build tests/cmsis
- working-directory: ${{runner.workspace}}/tests/cmsis/build
- shell: bash
- run: cmake --build . --config $BUILD_TYPE
- - name: Create build directory for tests/hal
- run: cmake -E make_directory ${{runner.workspace}}/tests/hal/build
- - name: Configure tests/hal
- shell: bash
- working-directory: ${{runner.workspace}}/tests/hal/build
- run: cmake -DFETCH_ST_SOURCES=TRUE $GITHUB_WORKSPACE/tests/hal/
- - name: Build tests/hal
- working-directory: ${{runner.workspace}}/tests/hal/build
- shell: bash
- run: cmake --build . --config $BUILD_TYPE
|