Skip to content

Commit 3f67e81

Browse files
committed
changed build_dirs
1 parent ca35f9f commit 3f67e81

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/scripts/sketch_utils.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,16 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
121121
if [ -n "$ARDUINO_BUILD_DIR" ]; then
122122
build_dir="$ARDUINO_BUILD_DIR"
123123
elif [ $len -eq 1 ]; then
124-
build_dir="$sketchdir/build"
125-
# build_dir="$HOME/.arduino/build.tmp"
124+
# build_dir="$sketchdir/build"
125+
build_dir="$HOME/.arduino/tests/$sketchname/build.tmp"
126126
fi
127127

128128
mkdir -p "$ARDUINO_CACHE_DIR"
129129
for i in `seq 0 $(($len - 1))`
130130
do
131131
if [ $len -ne 1 ]; then
132-
build_dir="$sketchdir/build$i"
133-
# build_dir="$HOME/.arduino/build$i.tmp"
132+
# build_dir="$sketchdir/build$i"
133+
build_dir="$HOME/.arduino/tests/$sketchname/build$i.tmp"
134134
fi
135135
rm -rf $build_dir
136136
mkdir -p $build_dir

.github/scripts/tests_run.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function run_test() {
1515
fi
1616

1717
if [ $len -eq 1 ]; then
18-
build_dir="tests/$sketchname/build"
18+
# build_dir="tests/$sketchname/build"
19+
build_dir="$HOME/.arduino/tests/$sketchname/build.tmp"
1920
report_file="tests/$sketchname/$sketchname.xml"
2021
fi
2122

@@ -27,7 +28,8 @@ function run_test() {
2728
fi
2829

2930
if [ $len -ne 1 ]; then
30-
build_dir="tests/$sketchname/build$i"
31+
# build_dir="tests/$sketchname/build$i"
32+
build_dir="$HOME/.arduino/tests/$sketchname/build$i.tmp"
3133
report_file="tests/$sketchname/$sketchname$i.xml"
3234
fi
3335

.github/workflows/hil.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
steps:
2727
- name: Checkout Repository
2828
uses: actions/checkout@v3
29-
29+
3030
- name: Generate Chunks matrix
3131
id: gen-chunks
3232
run: |
@@ -60,8 +60,8 @@ jobs:
6060
with:
6161
name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts
6262
path: |
63-
tests/*/build*/*.bin
64-
tests/*/build*/*.json
63+
~/.arduino/tests/*/build*.tmp/*.bin
64+
~/.arduino/tests/*/build*.tmp/*.json
6565
if-no-files-found: error
6666
Test:
6767
needs: [gen_chunks, Build]
@@ -89,7 +89,7 @@ jobs:
8989
uses: actions/download-artifact@v3
9090
with:
9191
name: ${{matrix.chip}}-${{matrix.chunks}}.artifacts
92-
path: tests/
92+
path: ~/.arduino/tests/
9393

9494
- name: Install dependencies
9595
run: |

0 commit comments

Comments
 (0)