|
| 1 | +# This is a basic workflow to help you get started with Actions |
| 2 | + |
| 3 | +name: CI |
| 4 | + |
| 5 | +# Controls when the action will run. Triggers the workflow on push or pull request |
| 6 | +# events but only for the master branch |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: [ master ] |
| 10 | + pull_request: |
| 11 | + branches: [ master ] |
| 12 | + |
| 13 | +strategy: |
| 14 | + matrix: |
| 15 | + target: |
| 16 | + - inemom1/accelero |
| 17 | + - inemom1/gyro |
| 18 | + - inemom1/leds |
| 19 | + - inemom1/pwm |
| 20 | + - stm32f4discovery/accel |
| 21 | + - stm32f4discovery/audio |
| 22 | + - stm32f4discovery/leds |
| 23 | + - stm32f4discovery/skel |
| 24 | + - stm32f4discovery/timerirq |
| 25 | + - stm32f429discovery/adcdma |
| 26 | + - stm32f429discovery/adcpolling |
| 27 | + - stm32f429discovery/button |
| 28 | + - stm32f429discovery/gyro |
| 29 | + - stm32f429discovery/leds |
| 30 | + - stm32f429discovery/spimaster |
| 31 | + - stm32f429discovery/spislave |
| 32 | + - stm32f429discovery/timerirq |
| 33 | + - stm32f429discovery/timerpwm |
| 34 | + - mbed-lpc1768/leds |
| 35 | + |
| 36 | +# A workflow run is made up of one or more jobs that can run sequentially or in parallel |
| 37 | +jobs: |
| 38 | + # This workflow contains a single job called "build" |
| 39 | + build: |
| 40 | + # The type of runner that the job will run on |
| 41 | + runs-on: ubuntu-latest |
| 42 | + |
| 43 | + container: |
| 44 | + image: grumpycoders/uc-sdk-build-env:latest |
| 45 | + env: |
| 46 | + TARGET: ${{matrix.target}} |
| 47 | + |
| 48 | + # Steps represent a sequence of tasks that will be executed as part of the job |
| 49 | + steps: |
| 50 | + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 51 | + - uses: actions/checkout@v2 |
| 52 | + |
| 53 | + # Runs a single command using the runners shell |
| 54 | + - name: Build |
| 55 | + run: make -C /uC-sdk/examples/$TARGET |
0 commit comments