Skip to content

Commit fe7799d

Browse files
committed
Optimize push workflow for PRs
1 parent 44160a8 commit fe7799d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/push.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,21 @@ on:
55
branches:
66
- master
77
pull_request:
8+
paths:
9+
- "**"
10+
- "!**.md"
11+
- "!.github/workflows/cron_build.yml"
12+
- "!.github/workflows/cron.yml"
13+
- "!.github/workflows/docker.yml"
14+
- "!.github/workflows/repository_dispatch.yml"
15+
- "!tools/config_editor/**"
16+
- "!tools/docker/**"
817

918
concurrency:
1019
group: esp-idf-libs-${{github.event.pull_request.number || github.ref}}
1120
cancel-in-progress: true
1221

1322
jobs:
14-
1523
build-libs:
1624
name: Build Libs for ${{ matrix.target }}
1725
runs-on: ubuntu-latest
@@ -21,16 +29,20 @@ jobs:
2129
fail-fast: false
2230
steps:
2331
- uses: actions/checkout@v4
32+
2433
- name: Install dependencies
2534
run: bash ./tools/prepare-ci.sh
35+
2636
- name: Build Libs for ${{ matrix.target }}
2737
run: bash ./build.sh -e -t ${{ matrix.target }}
38+
2839
- name: Upload build
2940
if: failure()
3041
uses: actions/upload-artifact@v4
3142
with:
3243
name: build-${{ matrix.target }}
3344
path: build
45+
3446
- name: Upload archive
3547
uses: actions/upload-artifact@v4
3648
with:
@@ -48,17 +60,20 @@ jobs:
4860
path: dist
4961
pattern: artifacts-*
5062
merge-multiple: true
63+
5164
- shell: bash
5265
run: |
5366
mkdir -p out
5467
find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
5568
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
5669
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
70+
5771
- name: Upload full esp32-arduino-libs archive
5872
uses: actions/upload-artifact@v4
5973
with:
6074
name: esp32-arduino-libs
6175
path: dist/esp32-arduino-libs.tar.gz
76+
6277
- name: Upload package_esp32_index.template.json
6378
uses: actions/upload-artifact@v4
6479
with:

0 commit comments

Comments
 (0)