Skip to content

Commit 904def5

Browse files
committed
2nd build run
1 parent 12d455c commit 904def5

File tree

2 files changed

+74
-32
lines changed

2 files changed

+74
-32
lines changed

.github/workflows/publishsizes.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sizes Results
22

33
on:
44
workflow_run:
5-
workflows: [Sizes Test]
5+
workflows: [ESP32 Arduino CI]
66
types:
77
- completed
88

@@ -26,13 +26,18 @@ jobs:
2626
run: |
2727
mkdir -p artifacts && cd artifacts
2828
mkdir -p sizes-report
29+
mkdir -p sizes-report/master
30+
mkdir -p sizes-report/pr
2931
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
3032
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
3133
do
3234
IFS=$'\t' read name url <<< "$artifact"
3335
gh api $url > "$name.zip"
3436
unzip -j "$name.zip" -d "temp_$name"
3537
mv "temp_$name"/* sizes-report/
38+
if [[ "$name" == "event.json" ]]; then
39+
mv libraries-report/event.json /Event\ file/
40+
fi
3641
rm -r "temp_$name"
3742
done
3843
echo "Contents of 'sizes-report':"

.github/workflows/push.yml

Lines changed: 68 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -52,42 +52,42 @@ jobs:
5252
- name: Upload cli compile json
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: cli_compile_${{ matrix.chunk }}
55+
name: pr_cli_compile_${{ matrix.chunk }}
5656
path: cli_compile_${{ matrix.chunk }}.json
5757

5858
# Windows and MacOS
59-
build-arduino-win-mac:
60-
name: Arduino on ${{ matrix.os }}
61-
runs-on: ${{ matrix.os }}
62-
strategy:
63-
fail-fast: false
64-
matrix:
65-
os: [windows-latest, macOS-latest]
66-
67-
steps:
68-
- uses: actions/checkout@v4
69-
- uses: actions/setup-python@v5
70-
with:
71-
python-version: '3.x'
72-
- name: Build Sketches
73-
run: bash ./.github/scripts/on-push.sh
59+
#build-arduino-win-mac:
60+
# name: Arduino on ${{ matrix.os }}
61+
# runs-on: ${{ matrix.os }}
62+
# strategy:
63+
# fail-fast: false
64+
# matrix:
65+
# os: [windows-latest, macOS-latest]
66+
#
67+
# steps:
68+
# - uses: actions/checkout@v4
69+
# - uses: actions/setup-python@v5
70+
# with:
71+
# python-version: '3.x'
72+
# - name: Build Sketches
73+
# run: bash ./.github/scripts/on-push.sh
7474

7575
# PlatformIO on Windows, Ubuntu and Mac
76-
build-platformio:
77-
name: PlatformIO on ${{ matrix.os }}
78-
runs-on: ${{ matrix.os }}
79-
strategy:
80-
fail-fast: false
81-
matrix:
82-
os: [ubuntu-latest, windows-latest, macOS-latest]
83-
84-
steps:
85-
- uses: actions/checkout@v4
86-
- uses: actions/setup-python@v5
87-
with:
88-
python-version: '3.x'
89-
- name: Build Sketches
90-
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
76+
#build-platformio:
77+
# name: PlatformIO on ${{ matrix.os }}
78+
# runs-on: ${{ matrix.os }}
79+
# strategy:
80+
# fail-fast: false
81+
# matrix:
82+
# os: [ubuntu-latest, windows-latest, macOS-latest]
83+
#
84+
# steps:
85+
# - uses: actions/checkout@v4
86+
# - uses: actions/setup-python@v5
87+
# with:
88+
# python-version: '3.x'
89+
# - name: Build Sketches
90+
# run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
9191

9292
build-esp-idf-component:
9393
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
@@ -117,3 +117,40 @@ jobs:
117117
idf.py create-project test
118118
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
119119
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build
120+
121+
# Ubuntu
122+
build-arduino-master-linux:
123+
name: Arduino Master ${{ matrix.chunk }} on ubuntu-latest
124+
runs-on: ubuntu-latest
125+
strategy:
126+
fail-fast: false
127+
matrix:
128+
chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
129+
130+
# Checkout master branch
131+
steps:
132+
- uses: actions/checkout@v4
133+
with:
134+
ref: master
135+
- uses: actions/setup-python@v5
136+
with:
137+
python-version: '3.x'
138+
- name: Cache tools
139+
id: cache-linux
140+
uses: actions/cache@v4
141+
with:
142+
path: |
143+
./tools/dist
144+
~/arduino_ide
145+
key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
146+
'tools/get.py',
147+
'.github/scripts/install-arduino-ide.sh') }}
148+
- name: Build Sketches
149+
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15
150+
151+
#Upload cli compile json as artifact
152+
- name: Upload cli compile json
153+
uses: actions/upload-artifact@v4
154+
with:
155+
name: master_cli_compile_${{ matrix.chunk }}
156+
path: cli_compile_${{ matrix.chunk }}.json

0 commit comments

Comments
 (0)