Skip to content

Commit

Permalink
CI: Update CI to build system reference applications
Browse files Browse the repository at this point in the history
Build system reference applications instead of open-amp deprecated
applications.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo committed Oct 17, 2024
1 parent 4cb6885 commit c9b2866
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/actions/build_ci/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,27 @@ build_linux(){
echo " Build for linux"
apt-get install -y libsysfs-dev libhugetlbfs-dev gcc || exit 1
export PROJECT_ROOT=$PWD
export || exit 1
pwd || exit 1
ls -l || exit 1
cd $PROJECT_ROOT/libmetal || exit 1
cmake . -Bbuild \
-DCMAKE_C_FLAGS="-Werror -Wall -Wextra -Wshadow -Wunused-but-set-variable" || exit 1
cd build || exit 1
make || exit 1
export || exit 1
cd $PROJECT_ROOT/open-amp || exit 1
cmake . -Bbuild -DCMAKE_C_FLAGS="-Werror -Wall -Wextra -Wshadow -Wunused-but-set-variable" \
-DWITH_APPS=on -DWITH_PROXY=on -DCMAKE_INCLUDE_PATH="$PROJECT_ROOT/libmetal/build/lib/include" \
-DCMAKE_LIBRARY_PATH="$PROJECT_ROOT/libmetal/build/lib" || exit 1
cd build || exit 1
make VERBOSE=1 all || exit 1
echo " -- Build libmetal --"
cd $PROJECT_ROOT/libmetal &&
cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=$PROJECT_ROOT/target \
-DCMAKE_C_FLAGS="-Werror -Wall -Wextra -Wshadow -Wunused-but-set-variable" || exit 1
make -C build install || exit 1
echo " -- Build open_amp --"
cd $PROJECT_ROOT/open-amp
cmake . -Bbuild -DCMAKE_INCLUDE_PATH=$PROJECT_ROOT/libmetal/build/lib/include/ \
-DCMAKE_LIBRARY_PATH=$PROJECT_ROOT/libmetal/build/lib/ \
-DCMAKE_INSTALL_PREFIX=$PROJECT_ROOT/target -DWITH_PROXY=on \
-DCMAKE_C_FLAGS="-Werror -Wall -Wextra -Wshadow -Wunused-but-set-variable" || exit 1
make -C build install || exit 1
pwd
echo " -- Build legacy Apps --"
cd $PROJECT_ROOT/openamp-system-reference/examples/legacy_apps
cmake -Bbuild \
-DCMAKE_INCLUDE_PATH="$PROJECT_ROOT/libmetal/build/lib/include/;$PROJECT_ROOT/open-amp/build/lib/include/" \
-DCMAKE_LIBRARY_PATH="$PROJECT_ROOT/libmetal/build/lib/;$PROJECT_ROOT/open-amp/build/lib/" \
-DCMAKE_INSTALL_PREFIX=$PROJECT_ROOT/target \
-DCMAKE_C_FLAGS="-Werror -Wall -Wextra -Wshadow -Wunused-but-set-variable" || exit 1
make -C build install || exit 1
exit 0
}

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
with:
repository: OpenAMP/libmetal
path: libmetal
- name: Checkout openamp-system-reference
uses: actions/checkout@v4
with:
repository: OpenAMP/openamp-system-reference
path: openamp-system-reference
- name: build for Linux
id: build_linux
uses: ./open-amp/.github/actions/build_ci
Expand Down

0 comments on commit c9b2866

Please sign in to comment.