39
39
set -e
40
40
rm sketches.txt
41
41
CHUNKS=$(jq -c -n '$ARGS.positional' --args `seq 0 1 $((sketches - 1))`)
42
- echo "::set-output name= chunks:: ${CHUNKS}"
42
+ echo "chunks= ${CHUNKS}" >>$GITHUB_OUTPUT
43
43
44
44
Build :
45
45
needs : gen_chunks
@@ -49,21 +49,20 @@ jobs:
49
49
matrix :
50
50
chip : ['esp32', 'esp32s2', 'esp32s3', 'esp32c3']
51
51
chunks : ${{fromJson(needs.gen_chunks.outputs.chunks)}}
52
-
53
52
steps :
54
53
- name : Checkout Repository
55
54
uses : actions/checkout@v3
56
-
57
55
- name : Build sketches
58
56
run : |
59
57
bash .github/scripts/tests_build.sh -c -t ${{matrix.chip}} -i ${{matrix.chunks}} -m ${{env.MAX_CHUNKS}}
60
58
- name : Upload ${{matrix.chip}}-${{matrix.chunks}} artifacts
61
- uses : actions/upload-artifact@v2
59
+ uses : actions/upload-artifact@v3
62
60
with :
63
61
name : ${{matrix.chip}}-${{matrix.chunks}}.artifacts
64
62
path : |
65
- tests/*/build*/*.bin
66
- tests/*/build*/*.json
63
+ ~/.arduino/tests/*/build*.tmp/*.bin
64
+ ~/.arduino/tests/*/build*.tmp/*.json
65
+ if-no-files-found : error
67
66
Test :
68
67
needs : [gen_chunks, Build]
69
68
name : ${{matrix.chip}}-Test#${{matrix.chunks}}
@@ -87,10 +86,10 @@ jobs:
87
86
uses : actions/checkout@v3
88
87
89
88
- name : Download ${{matrix.chip}}-${{matrix.chunks}} artifacts
90
- uses : actions/download-artifact@v2
89
+ uses : actions/download-artifact@v3
91
90
with :
92
91
name : ${{matrix.chip}}-${{matrix.chunks}}.artifacts
93
- path : tests/
92
+ path : ~/.arduino/ tests/
94
93
95
94
- name : Install dependencies
96
95
run : |
@@ -103,7 +102,7 @@ jobs:
103
102
bash .github/scripts/tests_run.sh -c -t ${{matrix.chip}} -i ${{matrix.chunks}} -m ${{env.MAX_CHUNKS}} -e
104
103
105
104
- name : Upload test result artifacts
106
- uses : actions/upload-artifact@v2
105
+ uses : actions/upload-artifact@v3
107
106
if : always()
108
107
with :
109
108
name : test_results-${{matrix.chip}}-${{matrix.chunks}}
@@ -118,7 +117,7 @@ jobs:
118
117
runs-on : ubuntu-latest
119
118
steps :
120
119
- name : Upload
121
- uses : actions/upload-artifact@v2
120
+ uses : actions/upload-artifact@v3
122
121
with :
123
122
name : Event File
124
123
path : ${{github.event_path}}
0 commit comments