diff --git a/.github/workflows/publishlib.yml b/.github/workflows/publishlib.yml index 44de0d9b3e1..af23bbb1363 100644 --- a/.github/workflows/publishlib.yml +++ b/.github/workflows/publishlib.yml @@ -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 .. diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c7c48225ca4..1d459816c43 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 }} @@ -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}} diff --git a/.github/workflows/sizes.yml b/.github/workflows/sizes.yml index fe92ff58494..007427d48cd 100644 --- a/.github/workflows/sizes.yml +++ b/.github/workflows/sizes.yml @@ -1,4 +1,5 @@ name: Sizes Test +# Comment # The workflow will run labeled pull requests on: @@ -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: @@ -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 }} @@ -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}} \ No newline at end of file