|
1 | | -name: Cron Build |
| 1 | +name: Cron Deploy |
2 | 2 |
|
3 | | -on: |
| 3 | +on: |
4 | 4 | schedule: |
5 | 5 | # ┌───────────── minute (0 - 59) |
6 | 6 | # │ ┌───────────── hour (0 - 23) |
7 | 7 | # │ │ ┌───────────── day of the month (1 - 31) |
8 | 8 | # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) |
9 | 9 | # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) |
10 | | -# │ │ │ │ │ |
| 10 | +# │ │ │ │ │ |
11 | 11 | # │ │ │ │ │ |
12 | 12 | # │ │ │ │ │ |
13 | 13 | # * * * * * |
14 | 14 | - cron: '0 */6 * * *' |
| 15 | + workflow_dispatch: # For testing |
15 | 16 |
|
16 | 17 | defaults: |
17 | 18 | run: |
18 | 19 | shell: bash |
19 | 20 |
|
20 | 21 | jobs: |
21 | | - run: |
| 22 | + build-libs: |
22 | 23 | name: Build with IDF ${{ matrix.idf_branch }} |
23 | | - runs-on: ubuntu-latest |
24 | | - |
| 24 | + uses: ./.github/workflows/cron_build.yml |
| 25 | + with: |
| 26 | + idf_branch: ${{ matrix.idf_branch }} |
| 27 | + lib_builder_branch: ${{ matrix.lib_builder_branch }} |
| 28 | + targets: ${{ matrix.targets }} |
| 29 | + secrets: inherit |
25 | 30 | strategy: |
26 | 31 | fail-fast: false |
27 | 32 | matrix: |
28 | | - idf_branch: [release/v5.1, release/v4.4] #, release/v3.3] |
29 | | - steps: |
30 | | - - uses: actions/checkout@v4 |
31 | | - with: |
32 | | - fetch-depth: 0 |
33 | | - - name: Install dependencies |
34 | | - run: bash ./tools/prepare-ci.sh |
35 | | - - name: Build |
36 | | - env: |
37 | | - GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} |
38 | | - GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }} |
39 | | - GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }} |
40 | | - IDF_BRANCH: ${{ matrix.idf_branch }} |
41 | | - run: | |
42 | | - git checkout ${{ matrix.idf_branch }} || echo "Using master branch" |
43 | | - bash ./tools/cron.sh |
44 | | - - name: Upload build |
45 | | - if: failure() |
46 | | - uses: actions/upload-artifact@v4 |
47 | | - with: |
48 | | - name: build |
49 | | - path: build |
50 | | - - name: Upload archive |
51 | | - uses: actions/upload-artifact@v4 |
52 | | - with: |
53 | | - name: artifacts |
54 | | - path: dist |
55 | | - |
56 | | - |
57 | | - # check: |
58 | | - # name: Check if result should be deployed |
59 | | - # runs-on: ubuntu-latest |
60 | | - # strategy: |
61 | | - # matrix: |
62 | | - # branch: [release/v5.1, release/v4.4] #, release/v3.3] |
63 | | - # outputs: |
64 | | - # idf_branch: ${{ steps.check.outputs.idf_branch }} |
65 | | - # idf_commit: ${{ steps.check.outputs.idf_commit }} |
66 | | - # ar_branch: ${{ steps.check.outputs.ar_branch }} |
67 | | - # ar_new_commit_message: ${{ steps.check.outputs.ar_new_commit_message }} |
68 | | - # ar_new_branch_name: ${{ steps.check.outputs.ar_new_branch_name }} |
69 | | - # ar_new_pr_title: ${{ steps.check.outputs.ar_new_pr_title }} |
70 | | - # ar_has_commit: ${{ steps.check.outputs.ar_has_commit }} |
71 | | - # ar_has_branch: ${{ steps.check.outputs.ar_has_branch }} |
72 | | - # ar_has_pr: ${{ steps.check.outputs.ar_has_pr }} |
73 | | - # libs_version: ${{ steps.check.outputs.libs_version }} |
74 | | - # libs_has_commit: ${{ steps.check.outputs.libs_has_commit }} |
75 | | - # libs_has_branch: ${{ steps.check.outputs.libs_has_branch }} |
76 | | - # steps: |
77 | | - # - uses: actions/checkout@v3 |
78 | | - # - id: check |
79 | | - # env: |
80 | | - # GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} |
81 | | - # GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }} |
82 | | - # GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }} |
83 | | - # IDF_BRANCH: ${{ matrix.idf_branch }} |
84 | | - # run: bash ./tools/check-deploy-needed.sh |
85 | | - |
86 | | - # build: |
87 | | - # name: Build Libs for ${{ matrix.target }} |
88 | | - # runs-on: ubuntu-latest |
89 | | - # needs: check |
90 | | - # if: needs.check.outputs.libs_has_commit == '0' || needs.check.outputs.ar_has_commit == '0' |
91 | | - # strategy: |
92 | | - # matrix: |
93 | | - # target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2] |
94 | | - # fail-fast: false |
95 | | - # steps: |
96 | | - # - uses: actions/checkout@v3 |
97 | | - # # - name: Install dependencies |
98 | | - # # run: bash ./tools/prepare-ci.sh |
99 | | - # - shell: bash |
100 | | - # name: Build Libs for ${{ matrix.target }} |
101 | | - # run: echo ${{ matrix.target }} |
102 | | - # # run: bash ./build.sh -t ${{ matrix.target }} |
103 | | - # # - name: Upload archive |
104 | | - # # uses: actions/upload-artifact@v3 |
105 | | - # # with: |
106 | | - # # name: artifacts |
107 | | - # # path: dist |
108 | | - |
109 | | - # deploy: |
110 | | - # name: Deploy build |
111 | | - # runs-on: ubuntu-latest |
112 | | - # needs: [check, build] |
113 | | - # steps: |
114 | | - # - uses: actions/checkout@v3 |
115 | | - # - shell: bash |
116 | | - # env: |
117 | | - # GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }} |
118 | | - # GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }} |
119 | | - # GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }} |
120 | | - # IDF_BRANCH: ${{ needs.check.outputs.idf_branch }} |
121 | | - # IDF_COMMIT: ${{ needs.check.outputs.idf_commit }} |
122 | | - # AR_BRANCH: ${{ needs.check.outputs.ar_branch }} |
123 | | - # AR_NEW_COMMIT_MESSAGE: ${{ needs.check.outputs.ar_new_commit_message }} |
124 | | - # AR_NEW_BRANCH_NAME: ${{ needs.check.outputs.ar_new_branch_name }} |
125 | | - # AR_NEW_PR_TITLE: ${{ needs.check.outputs.ar_new_pr_title }} |
126 | | - # AR_HAS_COMMIT: ${{ needs.check.outputs.ar_has_commit }} |
127 | | - # AR_HAS_BRANCH: ${{ needs.check.outputs.ar_has_branch }} |
128 | | - # AR_HAS_PR: ${{ needs.check.outputs.ar_has_pr }} |
129 | | - # LIBS_VERSION: ${{ needs.check.outputs.libs_version }} |
130 | | - # LIBS_HAS_COMMIT: ${{ needs.check.outputs.libs_has_commit }} |
131 | | - # LIBS_HAS_BRANCH: ${{ needs.check.outputs.libs_has_branch }} |
132 | | - # run: | |
133 | | - # echo "IDF_COMMIT: $IDF_COMMIT" |
134 | | - # echo "AR_BRANCH: $AR_BRANCH" |
135 | | - # echo "AR_NEW_COMMIT_MESSAGE: $AR_NEW_COMMIT_MESSAGE" |
136 | | - # echo "AR_NEW_BRANCH_NAME: $AR_NEW_BRANCH_NAME" |
137 | | - # echo "AR_NEW_PR_TITLE: $AR_NEW_PR_TITLE" |
138 | | - # echo "AR_HAS_COMMIT: $AR_HAS_COMMIT" |
139 | | - # echo "AR_HAS_BRANCH: $AR_HAS_BRANCH" |
140 | | - # echo "AR_HAS_PR: $AR_HAS_PR" |
141 | | - # echo "LIBS_VERSION: $LIBS_VERSION" |
142 | | - # echo "LIBS_HAS_COMMIT: $LIBS_HAS_COMMIT" |
143 | | - # echo "LIBS_HAS_BRANCH: $LIBS_HAS_BRANCH" |
144 | | - |
| 33 | + include: |
| 34 | + - idf_branch: "release/v5.1" |
| 35 | + lib_builder_branch: "master" |
| 36 | + targets: "esp32,esp32s2,esp32s3,esp32c3,esp32c6,esp32h2" |
0 commit comments