Minor improvement for tools/ci: Fixed cmake build of bloaty and installation in darwin.sh script.
function bloaty() Add -D CMAKE_INSTALL_PREFIX="${NUTTXTOOLS}"/bloaty. Improves workflow execution time because it is now cached. Changed reference file to calculate the hash for key of actions/cache@v4. Now it is darwin.sh.
This commit is contained in:
parent
23d65cb97f
commit
21572864e7
|
@ -197,7 +197,7 @@ jobs:
|
||||||
cache-name: ${{ runner.os }}-cache-tools
|
cache-name: ${{ runner.os }}-cache-tools
|
||||||
with:
|
with:
|
||||||
path: ./sources/tools
|
path: ./sources/tools
|
||||||
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/cibuild.sh') }}
|
key: ${{ runner.os }}-tools-${{ hashFiles('./sources/nuttx/tools/ci/platforms/darwin.sh') }}
|
||||||
|
|
||||||
- name: Export NuttX Repo SHA
|
- name: Export NuttX Repo SHA
|
||||||
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV
|
||||||
|
|
|
@ -103,10 +103,12 @@ bloaty() {
|
||||||
# https://github.com/google/bloaty/pull/326
|
# https://github.com/google/bloaty/pull/326
|
||||||
git checkout 52948c107c8f81045e7f9223ec02706b19cfa882
|
git checkout 52948c107c8f81045e7f9223ec02706b19cfa882
|
||||||
mkdir -p "${NUTTXTOOLS}"/bloaty
|
mkdir -p "${NUTTXTOOLS}"/bloaty
|
||||||
cmake -D BLOATY_PREFER_SYSTEM_CAPSTONE=NO -DCMAKE_SYSTEM_PREFIX_PATH="${NUTTXTOOLS}"/bloaty
|
cmake -B build/bloaty -D BLOATY_PREFER_SYSTEM_CAPSTONE=NO -D CMAKE_INSTALL_PREFIX="${NUTTXTOOLS}"/bloaty
|
||||||
make install -j 4
|
cmake --build build/bloaty
|
||||||
|
cmake --build build/bloaty --target install
|
||||||
cd "${NUTTXTOOLS}"
|
cd "${NUTTXTOOLS}"
|
||||||
rm -rf bloaty-src
|
rm -rf bloaty-src
|
||||||
|
ls -a "${NUTTXTOOLS}"/bloaty
|
||||||
fi
|
fi
|
||||||
|
|
||||||
command bloaty --version
|
command bloaty --version
|
||||||
|
|
Loading…
Reference in New Issue