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

Updated github actions deprecated output method #266

Merged
merged 1 commit into from
Apr 7, 2023
Merged
Changes from all commits
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
15 changes: 6 additions & 9 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ jobs:
with:
submodules: true
- name: prepare env
run: >
run: |
echo "TRAVIS_BUILD_DIR=$PWD" >> $GITHUB_ENV

echo "CMAKE_PREFIX_PATH=$TRAVIS_BUILD_DIR/tests/install" >>
$GITHUB_ENV

echo "CMAKE_PREFIX_PATH=$PWD/tests/install" >> $GITHUB_ENV
echo "GTEST_ROOT=$CMAKE_PREFIX_PATH/googletest" >> $GITHUB_ENV

- name: Install tools
run: |
echo "::group::googletest"
export CMAKE_PREFIX_PATH=$TRAVIS_BUILD_DIR/tests/install
export CMAKE_PREFIX_PATH=$PWD/tests/install
cd $GITHUB_WORKSPACE/tests/ci
export GTEST_ROOT=$CMAKE_PREFIX_PATH/googletest
./install_googletest.sh
Expand Down Expand Up @@ -132,9 +129,9 @@ jobs:
run: |
export COMPILE_OUTPUT=$(arduino-cli compile --fqbn ${{ matrix.fqbn }} --build-property="compiler.cpp.extra_flags=${{ matrix.compilerflag }}" ${{ matrix.boardurl }} --build-property="${{ matrix.build_param1 }}" --output-dir=$GITHUB_WORKSPACE $GITHUB_WORKSPACE/src/arduino-ide/SIGNALDuino/SIGNALDuino.ino)
echo "$COMPILE_OUTPUT"
echo "::set-output name=fileext::$(test -f $GITHUB_WORKSPACE/SIGNALDuino.ino.bin && echo "bin" || echo "hex")"
echo "::set-output name=skechsize::$(echo "$COMPILE_OUTPUT" | grep -Po "(?<=^Sketch uses )\d+")"
echo "::set-output name=globalramusage::$(echo "$COMPILE_OUTPUT" | grep -Po "(?<=^Global variables use )\d+")"
echo "fileext=$(test -f $GITHUB_WORKSPACE/SIGNALDuino.ino.bin && echo "bin" || echo "hex")" >> $GITHUB_OUTPUT
echo "skechsize=$(echo "$COMPILE_OUTPUT" | grep -Po "(?<=^Sketch uses )\d+")" >> $GITHUB_OUTPUT
echo "globalramusage=$(echo "$COMPILE_OUTPUT" | grep -Po "(?<=^Global variables use )\d+")" >> $GITHUB_OUTPUT

- name: Get flash and ram usage
id: compile_sizes
Expand Down