Skip to content

Fix/ethernet #9

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 36 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
49f7862
feat(eth): Support phy address auto detection
P-R-O-C-H-Y Mar 1, 2024
c6ecba0
fix(eth): add phy_address check
P-R-O-C-H-Y Mar 1, 2024
9d85f27
Create sizes.yml
P-R-O-C-H-Y Apr 10, 2024
93a71ba
Merge branch 'master' into fix/ethernet
P-R-O-C-H-Y Apr 10, 2024
ccd5202
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
9382bdb
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
936cad0
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
ab29736
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
25e31f2
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
a3a8c96
Update sizes.yml
P-R-O-C-H-Y Apr 10, 2024
ea3baac
update workflows
P-R-O-C-H-Y Apr 10, 2024
e706068
Update publishlib.yml
P-R-O-C-H-Y Apr 10, 2024
747aa09
Merge branch 'master' into fix/ethernet
P-R-O-C-H-Y Apr 10, 2024
3241f13
update bash
P-R-O-C-H-Y Apr 10, 2024
9a06727
Update publishlib.yml
P-R-O-C-H-Y Apr 10, 2024
c958919
Update publishlib.yml
P-R-O-C-H-Y Apr 11, 2024
d5307b9
Update publishlib.yml
P-R-O-C-H-Y Apr 11, 2024
28ed7e3
Merge branch 'master' into fix/ethernet
P-R-O-C-H-Y Apr 11, 2024
a5ff9ca
Compile all examples
P-R-O-C-H-Y Apr 11, 2024
c90fb0a
Add Huge_app partition to fqbn
P-R-O-C-H-Y Apr 11, 2024
312ecf7
save sizes in push workflow
P-R-O-C-H-Y Apr 12, 2024
24816a0
fix sizes file name
P-R-O-C-H-Y Apr 12, 2024
4ff9518
Update on-push.sh
P-R-O-C-H-Y Apr 15, 2024
69a9274
Update on-push.sh
P-R-O-C-H-Y Apr 15, 2024
d8276da
Update json file location
P-R-O-C-H-Y Apr 15, 2024
8c32460
fix chunk index in filename
P-R-O-C-H-Y Apr 15, 2024
3ad6ea7
changed json format and removed moving the file
P-R-O-C-H-Y Apr 15, 2024
990a6e3
add log messages
P-R-O-C-H-Y Apr 15, 2024
8651c52
Update sketch_utils.sh
P-R-O-C-H-Y Apr 15, 2024
0d93cc7
Update sketch_utils.sh
P-R-O-C-H-Y Apr 15, 2024
12d455c
Update sketch_utils.sh
P-R-O-C-H-Y Apr 15, 2024
904def5
2nd build run
P-R-O-C-H-Y Apr 15, 2024
49d431b
Merge branch 'master' into fix/ethernet
P-R-O-C-H-Y Apr 15, 2024
d2d37e4
Upload event file
P-R-O-C-H-Y Apr 16, 2024
ae81400
Merge branch 'master' into fix/ethernet
P-R-O-C-H-Y Apr 16, 2024
f59f87f
Update push.yml
P-R-O-C-H-Y Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publishlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
mv "temp_$name"/* libraries-report
fi
rm -r "temp_$name"
if [[ "$name" == "event.json" ]]; then
mkdir -p artifacts/Event\ file
mv libraries-report/event.json /Event\ file/
fi
done
echo "Contents of parent directory:"
ls -R ..
Expand Down
115 changes: 85 additions & 30 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,39 +48,46 @@ jobs:
- name: Build Sketches
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15

# Windows and MacOS
build-arduino-win-mac:
name: Arduino on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
#Upload cli compile json as artifact
- name: Upload cli compile json
uses: actions/upload-artifact@v4
with:
python-version: '3.x'
- name: Build Sketches
run: bash ./.github/scripts/on-push.sh
name: pr_cli_compile_${{ matrix.chunk }}
path: cli_compile_${{ matrix.chunk }}.json

# PlatformIO on Windows, Ubuntu and Mac
build-platformio:
name: PlatformIO on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
# Windows and MacOS
#build-arduino-win-mac:
# name: Arduino on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [windows-latest, macOS-latest]
#
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.x'
# - name: Build Sketches
# run: bash ./.github/scripts/on-push.sh

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build Sketches
run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO
# PlatformIO on Windows, Ubuntu and Mac
#build-platformio:
# name: PlatformIO on ${{ matrix.os }}
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest]
#
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.x'
# - name: Build Sketches
# run: bash ./.github/scripts/on-push.sh 1 1 #equal and non-zero to trigger PIO

build-esp-idf-component:
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
Expand Down Expand Up @@ -110,3 +117,51 @@ jobs:
idf.py create-project test
echo CONFIG_FREERTOS_HZ=1000 > test/sdkconfig.defaults
idf.py -C test -DEXTRA_COMPONENT_DIRS=$PWD/components build

# Ubuntu
build-arduino-master-linux:
name: Arduino Master ${{ matrix.chunk }} on ubuntu-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]

# Checkout master branch
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Cache tools
id: cache-linux
uses: actions/cache@v4
with:
path: |
./tools/dist
~/arduino_ide
key: ${{ runner.os }}-${{ hashFiles('package/package_esp32_index.template.json',
'tools/get.py',
'.github/scripts/install-arduino-ide.sh') }}
- name: Build Sketches
run: bash ./.github/scripts/on-push.sh ${{ matrix.chunk }} 15

#Upload cli compile json as artifact
- name: Upload cli compile json
uses: actions/upload-artifact@v4
with:
name: master_cli_compile_${{ matrix.chunk }}
path: cli_compile_${{ matrix.chunk }}.json

event_file:
name: "Event File"
needs: [build-arduino-linux, build-arduino-master-linux]
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{github.event_path}}
47 changes: 19 additions & 28 deletions .github/workflows/sizes.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Sizes Test
# Comment

# The workflow will run labeled pull requests
on:
Expand Down Expand Up @@ -34,17 +35,17 @@ jobs:

include:
- target: esp32
fqbn: espressif:esp32:esp32
fqbn: espressif:esp32:esp32:PartitionScheme=huge_app"
- target: esp32s2
fqbn: espressif:esp32:esp32s2
fqbn: espressif:esp32:esp32s2:PartitionScheme=huge_app"
- target: esp32c3
fqbn: espressif:esp32:esp32c3
fqbn: espressif:esp32:esp32c3:PartitionScheme=huge_app"
- target: esp32s3
fqbn: espressif:esp32:esp32s3
fqbn: espressif:esp32:esp32s3:PartitionScheme=huge_app"
- target: esp32c6
fqbn: espressif:esp32:esp32c6
fqbn: espressif:esp32:esp32c6:PartitionScheme=huge_app
- target: esp32h2
fqbn: espressif:esp32:esp32h2
fqbn: espressif:esp32:esp32h2:PartitionScheme=huge_app"


steps:
Expand All @@ -59,8 +60,9 @@ jobs:
${{ env.REPOSITORY }}
target: ${{ matrix.target }}
fqbn: ${{ matrix.fqbn }}
# The path to the libraries folder
sketch-paths: |
${{ env.REPOSITORY }}
- libraries/
use-json-file: false
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
Expand All @@ -74,26 +76,15 @@ jobs:
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}-${{ matrix.target }}
path: ${{ env.SKETCHES_REPORTS_PATH }}

report-comment:
needs: compile-sketch # Wait for the compile job to finish to get the data for the report
event_file:
name: "Event File"
if: |
contains(github.event.pull_request.labels.*.name, 'sizes_test')
needs: compile-sketch
runs-on: ubuntu-latest
steps:
# Check out repository
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ env.GITHUB_TOKEN }}
fetch-depth: '0'

# This step is needed to get the size data produced by the compile jobs
- name: Download sketches reports artifact
uses: actions/download-artifact@v4
with:
pattern: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}-*
merge-multiple: true
path: ${{ env.SKETCHES_REPORTS_PATH }}

- name: Report results
uses: P-R-O-C-H-Y/report-size-deltas@sizes
with:
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Event File
path: ${{github.event_path}}