Skip to content

Commit

Permalink
Merge pull request #139 from RICCIARDI-Adrien/add_cortex_m_ci
Browse files Browse the repository at this point in the history
CI: Added Cortex-M and ViPER CI builds.
  • Loading branch information
RICCIARDI-Adrien authored Oct 19, 2023
2 parents da0cb0c + f839eb1 commit f9bad71
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 0 deletions.
172 changes: 172 additions & 0 deletions .github/workflows/build-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,175 @@ jobs:
- name: Build the code
run: ./make.py
working-directory: examples/posix/${{ matrix.example_name }}

cortex-m-arduino-m0-examples:
name: Build Cortex-M Arduino M0 examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
example_name: [blink]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv6m/samd21/ArduinoM0 --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv6m/samd21/ArduinoM0/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv6m/samd21/ArduinoM0/${{ matrix.example_name }}

cortex-m-xplained-pro-examples:
name: Build Cortex-M Xplained Pro examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
example_name: [blink, readbutton, readbutton_isr]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv6m/samd21/XPlainedPro --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv6m/samd21/XPlainedPro/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv6m/samd21/XPlainedPro/${{ matrix.example_name }}

cortex-m-arduino-due-examples:
name: Build Cortex-M Arduino Due examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
example_name: [blink]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv7m/atsam3x8e/arduino_due --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv7m/atsam3x8e/arduino_due/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv7m/atsam3x8e/arduino_due/${{ matrix.example_name }}

cortex-m-smart-fusion-2-examples:
name: Build Cortex-M SmartFusion2 examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
# List only the examples that currently compile
example_name: [blink]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv7m/SmartFusion2 --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv7m/SmartFusion2/starterKit/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv7m/SmartFusion2/starterKit/${{ matrix.example_name }}

cortex-m-smart-nucleo-f303-examples:
name: Build Cortex-M Nucleo-F303 examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
# List only the examples that currently compile
example_name: [blink, serial]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv7em/stm32f303 --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv7em/stm32f303/Nucleo-32/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv7em/stm32f303/Nucleo-32/${{ matrix.example_name }}

cortex-m-smart-nucleo-l432-examples:
name: Build Cortex-M Nucleo-F432 examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
# List only the examples that currently compile
example_name: [blink, readbutton, serial]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv7em/stm32l432 --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv7em/stm32l432/Nucleo-32/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv7em/stm32l432/Nucleo-32/${{ matrix.example_name }}

cortex-m-smart-stm32f4discovery-examples:
name: Build Cortex-M STM32F4DISCOVERY examples
runs-on: ubuntu-22.04
needs: goil
strategy:
matrix:
# List only the examples that currently compile
example_name: [blink, readbutton, testDisableEnable]
steps:
- name: Install ARM toolchain
run: |
sudo apt update
sudo apt install -y gcc-arm-none-eabi
- name: Retrieve sources and Goil binary
uses: actions/cache/restore@v3
with:
path: ${{ github.workspace }}
key: ${{ env.CACHE_KEY }}
- name: Generate the code
run: ${{ env.GOIL }} --target=cortex/armv7em/stm32f407/stm32f4discovery --templates=../../../../../../goil/templates/ ${{ matrix.example_name }}.oil
working-directory: examples/cortex/armv7em/stm32f407/stm32f4discovery/${{ matrix.example_name }}
- name: Build the code
run: ./make.py
working-directory: examples/cortex/armv7em/stm32f407/stm32f4discovery/${{ matrix.example_name }}
15 changes: 15 additions & 0 deletions .github/workflows/build-viper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Build ViPER (Virtual Processor EmulatoR)
on: [push, pull_request]

jobs:
viper:
name: Build ViPER
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: make
working-directory: viper

0 comments on commit f9bad71

Please sign in to comment.