Skip to content

Commit 6337a02

Browse files
committed
Adds Push Github Workflow
1 parent 00ad145 commit 6337a02

File tree

1 file changed

+107
-70
lines changed

1 file changed

+107
-70
lines changed

Diff for: .github/workflows/push.yml

+107-70
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,119 @@
1-
name: ESP32 Arduino Libs CI
1+
# name: ESP32 Arduino Libs CI
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
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/**"
3+
# on:
4+
# push:
5+
# branches:
6+
# - master
7+
# 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/**"
1717

18-
concurrency:
19-
group: esp-idf-libs-${{github.event.pull_request.number || github.ref}}
20-
cancel-in-progress: true
18+
# concurrency:
19+
# group: esp-idf-libs-${{github.event.pull_request.number || github.ref}}
20+
# cancel-in-progress: true
2121

22-
jobs:
23-
build-libs:
24-
name: Build Libs for ${{ matrix.target }}
25-
runs-on: ubuntu-latest
26-
strategy:
27-
matrix:
28-
target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4]
29-
fail-fast: false
30-
steps:
31-
- uses: actions/checkout@v4
22+
# jobs:
23+
# build-libs:
24+
# name: Build Libs for ${{ matrix.target }}
25+
# runs-on: ubuntu-latest
26+
# strategy:
27+
# matrix:
28+
# target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2]
29+
# fail-fast: false
30+
# steps:
31+
# - uses: actions/checkout@v4
3232

33-
- name: Install dependencies
34-
run: bash ./tools/prepare-ci.sh
33+
# - name: Install dependencies
34+
# run: bash ./tools/prepare-ci.sh
3535

36-
- name: Build Libs for ${{ matrix.target }}
37-
run: bash ./build.sh -e -t ${{ matrix.target }}
36+
# - name: Build Libs for ${{ matrix.target }}
37+
# run: bash ./build.sh -e -t ${{ matrix.target }}
3838

39-
- name: Upload build
40-
if: failure()
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: build-${{ matrix.target }}
44-
path: build
39+
# - name: Upload build
40+
# if: failure()
41+
# uses: actions/upload-artifact@v4
42+
# with:
43+
# name: build-${{ matrix.target }}
44+
# path: build
4545

46-
- name: Upload archive
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: artifacts-${{ matrix.target }}
50-
path: dist
46+
# - name: Upload archive
47+
# uses: actions/upload-artifact@v4
48+
# with:
49+
# name: artifacts-${{ matrix.target }}
50+
# path: dist
5151

52-
combine-artifacts:
53-
name: Combine artifacts
54-
needs: build-libs
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Download artifacts
58-
uses: actions/download-artifact@v4
59-
with:
60-
path: dist
61-
pattern: artifacts-*
62-
merge-multiple: true
52+
# combine-artifacts:
53+
# name: Combine artifacts
54+
# needs: build-libs
55+
# runs-on: ubuntu-latest
56+
# steps:
57+
# - name: Download artifacts
58+
# uses: actions/download-artifact@v4
59+
# with:
60+
# path: dist
61+
# pattern: artifacts-*
62+
# merge-multiple: true
6363

64-
- shell: bash
65-
run: |
66-
mkdir -p out
67-
find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
68-
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
69-
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
64+
# - shell: bash
65+
# run: |
66+
# mkdir -p out
67+
# find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
68+
# cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
69+
# cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
7070

71-
- name: Upload full esp32-arduino-libs archive
72-
uses: actions/upload-artifact@v4
73-
with:
74-
name: esp32-arduino-libs
75-
path: dist/esp32-arduino-libs.tar.gz
71+
# - name: Upload full esp32-arduino-libs archive
72+
# uses: actions/upload-artifact@v4
73+
# with:
74+
# name: esp32-arduino-libs
75+
# path: dist/esp32-arduino-libs.tar.gz
7676

77-
- name: Upload package_esp32_index.template.json
78-
uses: actions/upload-artifact@v4
79-
with:
80-
name: package-esp32-index-json
81-
path: dist/package_esp32_index.template.json
77+
# - name: Upload package_esp32_index.template.json
78+
# uses: actions/upload-artifact@v4
79+
# with:
80+
# name: package-esp32-index-json
81+
# path: dist/package_esp32_index.template.json
8282

83+
name: Build Arduino Libs
84+
on:
85+
workflow_dispatch: # Manually start a workflow
86+
87+
jobs:
88+
build-libs:
89+
name: Build Arduino Libs
90+
runs-on: macos-14
91+
permissions:
92+
contents: write
93+
steps:
94+
- uses: actions/checkout@v4
95+
- name: Set up Python
96+
uses: actions/setup-python@v5
97+
with:
98+
python-version: '3.11'
99+
- name: Install dependencies
100+
run: bash ./tools/prepare-ci.sh
101+
- name: Get current branch
102+
run: |
103+
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
104+
- name: Build Arduino Libs
105+
env:
106+
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
107+
GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
108+
run: bash ./build.sh -I release/v5.3 -A idf-release/v5.3
109+
- name: Release
110+
uses: jason2866/[email protected]
111+
with:
112+
tag_name: ${{ github.run_number }}
113+
body_path: release-info.txt
114+
prerelease: true
115+
files: |
116+
dist/framework*
117+
release-info.txt
118+
env:
119+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)