diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1a044da..745610e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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: diff --git a/tests/common.sh b/tests/common.sh index 7dd2044..61a5db6 100755 --- a/tests/common.sh +++ b/tests/common.sh @@ -112,7 +112,10 @@ 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. - touch -d 'now + 1 day' $cache_dir/core/*.a + 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