@@ -150,3 +150,120 @@ jobs:
150150 run : |
151151 export PATH=~/.cargo/bin:$PATH
152152 cd tests_zemu && yarn testSR25519
153+
154+ build_package_0 :
155+ needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
156+ if : ${{ github.ref == 'refs/heads/master' }}
157+ runs-on : ubuntu-latest
158+ container :
159+ image : zondax/builder-bolos:latest
160+ options : --user ${{ needs.configure.outputs.uid_gid }}
161+ env :
162+ BOLOS_SDK : ${{ github.workspace }}/deps/nanos-secure-sdk
163+ BOLOS_ENV : /opt/bolos
164+ HOME : /home/zondax_circle
165+ steps :
166+ - name : Checkout
167+ uses : actions/checkout@v2
168+ with :
169+ submodules : true
170+ - name : Install deps
171+ run : pip install ledgerblue
172+
173+ - name : Build NanoS light
174+ shell : bash -l {0}
175+ run : |
176+ source $HOME/.cargo/env
177+ make SUBSTRATE_PARSER_FULL=0
178+ mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos_light.sh
179+ - name : Set tag
180+ id : nanos_light
181+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanos_light.sh version)
182+ - name : Create or Update Release (1)
183+ id : create_release_0
184+ uses : softprops/action-gh-release@v1
185+ env :
186+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
187+ with :
188+ files : ./app/pkg/installer_nanos_light.sh
189+ tag_name : ${{ steps.nanos_light.outputs.tag_name }}
190+ draft : false
191+ prerelease : false
192+
193+ build_package_1 :
194+ needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
195+ if : ${{ github.ref == 'refs/heads/master' }}
196+ runs-on : ubuntu-latest
197+ container :
198+ image : zondax/builder-bolos:latest
199+ options : --user ${{ needs.configure.outputs.uid_gid }}
200+ env :
201+ BOLOS_SDK : ${{ github.workspace }}/deps/nanos-secure-sdk
202+ BOLOS_ENV : /opt/bolos
203+ HOME : /home/zondax_circle
204+ steps :
205+ - name : Checkout
206+ uses : actions/checkout@v2
207+ with :
208+ submodules : true
209+ - name : Install deps
210+ run : pip install ledgerblue
211+
212+ - name : Build NanoS XL
213+ shell : bash -l {0}
214+ run : |
215+ source $HOME/.cargo/env
216+ make SUBSTRATE_PARSER_FULL=1
217+ mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos_xl.sh
218+ - name : Set tag
219+ id : nanos_xl
220+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanos_xl.sh version)
221+ - name : Update Release
222+ id : update_release_1
223+ uses : softprops/action-gh-release@v1
224+ env :
225+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
226+ with :
227+ files : ./app/pkg/installer_nanos_xl.sh
228+ tag_name : ${{ steps.nanos_xl.outputs.tag_name }}
229+ draft : false
230+ prerelease : false
231+
232+ build_package_2 :
233+ needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
234+ if : ${{ github.ref == 'refs/heads/master' }}
235+ runs-on : ubuntu-latest
236+ container :
237+ image : zondax/builder-bolos:latest
238+ options : --user ${{ needs.configure.outputs.uid_gid }}
239+ env :
240+ BOLOS_SDK : ${{ github.workspace }}/deps/nanosplus-secure-sdk
241+ BOLOS_ENV : /opt/bolos
242+ HOME : /home/zondax_circle
243+ steps :
244+ - name : Checkout
245+ uses : actions/checkout@v2
246+ with :
247+ submodules : true
248+ - name : Install deps
249+ run : pip install ledgerblue
250+
251+ - name : Build NanoSP XL
252+ shell : bash -l {0}
253+ run : |
254+ source $HOME/.cargo/env
255+ make SUBSTRATE_PARSER_FULL=1
256+ mv ./app/pkg/installer_s2.sh ./app/pkg/installer_nanosp_xl.sh
257+ - name : Set tag
258+ id : nanosp_xl
259+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanosp_xl.sh version)
260+ - name : Update Release
261+ id : update_release_2
262+ uses : softprops/action-gh-release@v1
263+ env :
264+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
265+ with :
266+ files : ./app/pkg/installer_nanosp_xl.sh
267+ tag_name : ${{ steps.nanosp_xl.outputs.tag_name }}
268+ draft : false
269+ prerelease : false
0 commit comments