8000 Rework CI workflows by mcspr · Pull Request #8688 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Rework CI workflows #8688

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

Merged
merged 18 commits into from
Oct 31, 2022
Prev Previous commit
Next Next commit
create base hw dir
  • Loading branch information
mcspr committed Oct 15, 2022
commit 7df507e3c87ee452cda46e62aa9aa9dbc2b468ad
8 changes: 5 additions & 3 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ trap 'trap_exit' EXIT

function trap_exit()
{
# workaround for macOS shipping with broken bash
local exit_code=$?
if [ -z "${ESP8266_ARDUINO_PRESERVE_CACHE-}" ]; then
rm -rf "$cache_dir"
Expand Down Expand Up @@ -368,10 +369,11 @@ function install_core()
popd
popd

local core_dir
core_dir=$(dirname "$hardware_core_path")
mkdir -p $(dirname "$core_dir")

if [ "${RUNNER_OS-}" = "Windows" ]; then
local core_dir
core_dir=$(dirname "$hardware_core_path")
mkdir -p $(dirname "$core_dir")
cp -a "$core_path" "${core_dir}/esp8266"
else
ln -s "$core_path" "$hardware_core_path"
Expand Down
0