Skip to content

Commit

Permalink
CI: test errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
okias authored and digetx committed Jul 29, 2021
1 parent ff5b9b7 commit e2b0f06
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
ARCH: arm # build for armv7
SCCACHE_CACHE_SIZE: 2G
SCCACHE_DIR: /home/runner/.cache/sccache
BUILD_PATH: /home/runner/.cache/tuxmake/builds/1

on:
push:
Expand Down Expand Up @@ -50,8 +51,21 @@ jobs:
pip3 install -U --user tuxmake
- name: Build
run: |
tuxmake --directory ./ -w sccache --target-arch=arm -k $KBUILD_DEFCONFIG $TUXMAKE_EXTRA_OPTS
tuxmake --directory ./ -w sccache --target-arch=arm -k $KBUILD_DEFCONFIG $TUXMAKE_EXTRA_OPTS | sed "s|^/home/runner/work/linux/linux/|::error::|"
tar -cf linux-grate-${{ matrix.cc }}.tar -C /home/runner/.cache/tuxmake/builds/1 .
export ERRS=`grep "errors" "${BUILD_PATH}"/metadata.json | cut -d":" -f2 | tr -d " ,"`
export WARNS=`grep "warnings" "${BUILD_PATH}"/metadata.json | cut -d":" -f2 | tr -d " ,"`
if [ $ERRS != "0" ]; then
echo "::error::Compilation failed due to $ERRS errors, please fix them."
RET=1
fi
if [ $WARNS != "0" ]; then
echo "::error::$WARNS warnings found, please fix them."
RET=1
fi
if [ $RET = 1 ]; then
exit 1
fi
- name: Stop sccache server
run: sccache --stop-server || true
- uses: "marvinpinto/action-automatic-releases@latest"
Expand Down

0 comments on commit e2b0f06

Please sign in to comment.