@@ -11,119 +11,35 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
- check :
15
- name : Check if result should be deployed
16
- runs-on : ubuntu-latest
17
- outputs :
18
- idf_commit : ${{ steps.check.outputs.idf_commit }}
19
- ar_branch : ${{ steps.check.outputs.ar_branch }}
20
- ar_new_commit_message : ${{ steps.check.outputs.ar_new_commit_message }}
21
- ar_new_branch_name : ${{ steps.check.outputs.ar_new_branch_name }}
22
- ar_new_pr_title : ${{ steps.check.outputs.ar_new_pr_title }}
23
- ar_has_commit : ${{ steps.check.outputs.ar_has_commit }}
24
- ar_has_branch : ${{ steps.check.outputs.ar_has_branch }}
25
- ar_has_pr : ${{ steps.check.outputs.ar_has_pr }}
26
- libs_version : ${{ steps.check.outputs.libs_version }}
27
- libs_has_commit : ${{ steps.check.outputs.libs_has_commit }}
28
- libs_has_branch : ${{ steps.check.outputs.libs_has_branch }}
29
- steps :
30
- - uses : actions/checkout@v3
31
- - id : check
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.PUSH_TOKEN }}
34
- GIT_AUTHOR_EMAIL : ${{ secrets.PUSH_EMAIL }}
35
- GIT_COMMITTER_EMAIL : ${{ secrets.PUSH_EMAIL }}
36
- run : bash ./tools/check-deploy-needed.sh
37
-
38
- build :
14
+ build-libs :
39
15
name : Build Libs for ${{ matrix.target }}
40
16
runs-on : ubuntu-latest
41
- needs : check
42
17
strategy :
43
18
matrix :
44
19
target : [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2]
45
20
fail-fast : false
46
21
steps :
47
22
- uses : actions/checkout@v3
48
- # - name: Install dependencies
49
- # run: bash ./tools/prepare-ci.sh
50
- - shell : bash
51
- name : Build Libs for ${{ matrix.target }}
52
- run : echo ${{ matrix.target }}
53
- # run: bash ./build.sh -t ${{ matrix.target }}
54
- # - name: Upload archive
55
- # uses: actions/upload-artifact@v3
56
- # with:
57
- # name: artifacts
58
- # path: dist
59
-
60
- deploy :
61
- name : Deploy build
23
+ - name : Install dependencies
24
+ run : bash ./tools/prepare-ci.sh
25
+ - name : Build Libs for ${{ matrix.target }}
26
+ run : bash ./build.sh -e -t ${{ matrix.target }}
27
+ - name : Upload archive
28
+ uses : actions/upload-artifact@v3
29
+ with :
30
+ name : artifacts
31
+ path : dist
32
+
33
+ inspect-artifacts :
34
+ name : Check resulting artifacts
35
+ needs : build-libs
62
36
runs-on : ubuntu-latest
63
- needs : [check, build]
64
37
steps :
65
- - uses : actions/checkout@v3
66
- - shell : bash
67
- env :
68
- GITHUB_TOKEN : ${{ secrets.PUSH_TOKEN }}
69
- GIT_AUTHOR_EMAIL : ${{ secrets.PUSH_EMAIL }}
70
- GIT_COMMITTER_EMAIL : ${{ secrets.PUSH_EMAIL }}
71
- IDF_COMMIT : ${{ needs.check.outputs.idf_commit }}
72
- AR_BRANCH : ${{ needs.check.outputs.ar_branch }}
73
- AR_NEW_COMMIT_MESSAGE : ${{ needs.check.outputs.ar_new_commit_message }}
74
- AR_NEW_BRANCH_NAME : ${{ needs.check.outputs.ar_new_branch_name }}
75
- AR_NEW_PR_TITLE : ${{ needs.check.outputs.ar_new_pr_title }}
76
- AR_HAS_COMMIT : ${{ needs.check.outputs.ar_has_commit }}
77
- AR_HAS_BRANCH : ${{ needs.check.outputs.ar_has_branch }}
78
- AR_HAS_PR : ${{ needs.check.outputs.ar_has_pr }}
79
- LIBS_VERSION : ${{ needs.check.outputs.libs_version }}
80
- LIBS_HAS_COMMIT : ${{ needs.check.outputs.libs_has_commit }}
81
- LIBS_HAS_BRANCH : ${{ needs.check.outputs.libs_has_branch }}
82
- run : |
83
- echo "IDF_COMMIT: $IDF_COMMIT"
84
- echo "AR_BRANCH: $AR_BRANCH"
85
- echo "AR_NEW_COMMIT_MESSAGE: $AR_NEW_COMMIT_MESSAGE"
86
- echo "AR_NEW_BRANCH_NAME: $AR_NEW_BRANCH_NAME"
87
- echo "AR_NEW_PR_TITLE: $AR_NEW_PR_TITLE"
88
- echo "AR_HAS_COMMIT: $AR_HAS_COMMIT"
89
- echo "AR_HAS_BRANCH: $AR_HAS_BRANCH"
90
- echo "AR_HAS_PR: $AR_HAS_PR"
91
- echo "LIBS_VERSION: $LIBS_VERSION"
92
- echo "LIBS_HAS_COMMIT: $LIBS_HAS_COMMIT"
93
- echo "LIBS_HAS_BRANCH: $LIBS_HAS_BRANCH"
94
-
95
- # build-libs:
96
- # name: Build Libs for ${{ matrix.target }}
97
- # runs-on: ubuntu-latest
98
- # strategy:
99
- # matrix:
100
- # target: [esp32, esp32s2, esp32s3, esp32c3, esp32c6, esp32h2]
101
- # fail-fast: false
102
- # steps:
103
- # - uses: actions/checkout@v3
104
- # - name: Install dependencies
105
- # run: bash ./tools/prepare-ci.sh
106
- # - name: Build Libs for ${{ matrix.target }}
107
- # run: bash ./build.sh -t ${{ matrix.target }}
108
- # - name: Upload archive
109
- # uses: actions/upload-artifact@v3
110
- # with:
111
- # name: artifacts
112
- # path: out
113
-
114
- # inspect-artifacts:
115
- # name: Check resulting artifacts
116
- # needs: build-libs
117
- # runs-on: ubuntu-latest
118
- # steps:
119
- # - name: Download artifacts
120
- # uses: actions/download-artifact@v3
121
- # with:
122
- # name: artifacts
123
- # path: out
124
- # - shell: bash
125
- # run: |
126
- # ls -l out
127
- # ls -l out/tools
128
- # ls -l out/tools/esp32-arduino-libs
38
+ - name : Download artifacts
39
+ uses : actions/download-artifact@v3
40
+ with :
41
+ name : artifacts
42
+ path : dist
43
+ - shell : bash
44
+ run : ls -l dist
129
45
0 commit comments