Mac BASH update for CI scripts (#2400)

This commit is contained in:
Earle F. Philhower, III 2024-08-31 12:53:00 -07:00 committed by GitHub
parent 226a318897
commit cde5fe3de5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -187,11 +187,16 @@ jobs:
mod: 500
rem: 1
run: |
brew update
brew install bash
/usr/bin/env bash --version
uname -a
cd pico-sdk
git submodule update --init
cd ..
bash ./tests/build.sh
/usr/bin/env bash ./tests/build.sh
./system/picotool/picotool version
otool -L ./system/picotool/picotool
# Build a few examples with PlatformIO to test if integration works
build-platformio:

View file

@ -112,8 +112,11 @@ function build_sketches()
mv $build_dir/build.options.json.tmp $build_dir/build.options.json
# Set the time of the cached core.a file to the future so the GIT header
# we regen won't cause the builder to throw it out and rebuild from scratch.
uname -a | grep -qi darwin
if [ $? == 1 ]; then
touch -d 'now + 1 day' $cache_dir/core/*.a
fi
fi
# Clear out the last built sketch, map, elf, bin files, but leave the compiled
# objects in the core and libraries available for use so we don't need to rebuild