From b1f1a243210c0e75f397f02cdb9a2ba1a0cf689b Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 12:27:05 +0200 Subject: [PATCH 1/8] ci: Added Cortex-M Arduino M0 examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 2480423b6..1dd5a7f61 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -117,3 +117,27 @@ 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 }} From dc6e02834a7c508f3371687acb022c467c76afe0 Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 12:36:42 +0200 Subject: [PATCH 2/8] ci: Added Cortex-M Xplained Pro examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 1dd5a7f61..93622b3e7 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -141,3 +141,27 @@ jobs: - 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 }} From 958573e7c1db64e749a67b41d3357d702bff3849 Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 14:20:58 +0200 Subject: [PATCH 3/8] ci: Added Cortex-M Arduino Due examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 93622b3e7..998dea693 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -165,3 +165,27 @@ jobs: - 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 }} From 77615920242cd7a49aa54f018bf58ec6247b266f Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 14:24:29 +0200 Subject: [PATCH 4/8] ci: Added Cortex-M SmartFusion2 examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 998dea693..08913a8ce 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -189,3 +189,28 @@ jobs: - 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 }} From 49679496d37b9e8f5e498235c738b2c64196805e Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 14:39:08 +0200 Subject: [PATCH 5/8] ci: Added Cortex-M Nucleo-F303 examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 08913a8ce..47b6cbc97 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -214,3 +214,28 @@ jobs: - 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 }} From 7c9a8f31b596fc631af8a51b514219f9ec7bb2b6 Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 14:49:47 +0200 Subject: [PATCH 6/8] ci: Added Cortex-M STM32F4DISCOVERY examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 47b6cbc97..21a74ef85 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -239,3 +239,28 @@ jobs: - name: Build the code run: ./make.py working-directory: examples/cortex/armv7em/stm32f303/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 }} From 2fbad02ac3b8284d6878e41882756153a9127a48 Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 14:57:53 +0200 Subject: [PATCH 7/8] ci: Added Cortex-M Nucleo-F432 examples build. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-examples.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-examples.yaml b/.github/workflows/build-examples.yaml index 21a74ef85..f68a1cd87 100644 --- a/.github/workflows/build-examples.yaml +++ b/.github/workflows/build-examples.yaml @@ -240,6 +240,31 @@ jobs: 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 From f839eb1108f2dd12793a0f315cf9d6e0eb634f6f Mon Sep 17 00:00:00 2001 From: Adrien Ricciardi Date: Wed, 11 Oct 2023 15:30:28 +0200 Subject: [PATCH 8/8] ci: Added a dedicated workflow to build ViPER. Signed-off-by: Adrien Ricciardi --- .github/workflows/build-viper.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/build-viper.yaml diff --git a/.github/workflows/build-viper.yaml b/.github/workflows/build-viper.yaml new file mode 100644 index 000000000..cc3e529e5 --- /dev/null +++ b/.github/workflows/build-viper.yaml @@ -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