Mac BASH update for CI scripts (#2400)
This commit is contained in:
parent
226a318897
commit
cde5fe3de5
2 changed files with 10 additions and 2 deletions
7
.github/workflows/pull-request.yml
vendored
7
.github/workflows/pull-request.yml
vendored
|
|
@ -187,11 +187,16 @@ jobs:
|
||||||
mod: 500
|
mod: 500
|
||||||
rem: 1
|
rem: 1
|
||||||
run: |
|
run: |
|
||||||
|
brew update
|
||||||
|
brew install bash
|
||||||
|
/usr/bin/env bash --version
|
||||||
uname -a
|
uname -a
|
||||||
cd pico-sdk
|
cd pico-sdk
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
cd ..
|
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 a few examples with PlatformIO to test if integration works
|
||||||
build-platformio:
|
build-platformio:
|
||||||
|
|
|
||||||
|
|
@ -112,8 +112,11 @@ function build_sketches()
|
||||||
mv $build_dir/build.options.json.tmp $build_dir/build.options.json
|
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
|
# 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.
|
# 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
|
touch -d 'now + 1 day' $cache_dir/core/*.a
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Clear out the last built sketch, map, elf, bin files, but leave the compiled
|
# 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
|
# objects in the core and libraries available for use so we don't need to rebuild
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue