Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows: Added initial build support based on github actions #32

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/build_projects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: precision-converters-firmware
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- ad4130_iio
- ad559xr_console
- ad5770r_console
- ad590_console
- ad5933_console
- ad7124_console
- ad7124_temperature-measure
- ad7134_iio
- ad717x_console
- ad717x_iio
- ad719x_iio
- ad738x_iio
- ad7606_iio
- ad7689_iio
- ad77681_iio
- adt7420_console
- evb_discovery_firmware
- ltc268x_console
- nanodac_console
platform:
- MBED_PLATFORM

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Update submodules recursively
run: |
git submodule update --init --recursive

- name: Build project
run: |
set -x
pip install mbed-cli
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
tar xjf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
export PATH="${PATH}:${PWD}/gcc-arm-none-eabi-10.3-2021.10/bin"
mbed config -G GCC_ARM_PATH "${PWD}/gcc-arm-none-eabi-10.3-2021.10/bin"

pushd libraries/no-OS/libraries/mbed/mbed-os
pip install -r requirements.txt
popd

pushd projects/${{ matrix.project }}
make NEW_CFLAGS+=-DPLATFORM_NAME=${{ matrix.platform }}
popd

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.project }}
path: |
projects/${{ matrix.project }}/build/${{ matrix.project }}.bin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where these builds are uploaded to.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.