@@ -150,7 +150,7 @@ jobs:
150150 export PATH=~/.cargo/bin:$PATH
151151 cd tests_zemu && yarn testSR25519
152152
153- build_package :
153+ build_package_0 :
154154 needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
155155 if : ${{ github.ref == 'refs/heads/main' }}
156156 runs-on : ubuntu-latest
@@ -168,41 +168,101 @@ jobs:
168168 submodules : true
169169 - name : Install deps
170170 run : pip install ledgerblue
171- - name : Build
171+
172+ - name : Build NanoS light
172173 shell : bash -l {0}
173174 run : |
174175 source $HOME/.cargo/env
175176 make SUBSTRATE_PARSER_FULL=0
176- - name : Set tag name var (1)
177- id : vars_1
178- run : echo ::set-output name=tag_name::$(./app/pkg/installer_s.sh version)
177+ mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos_light.sh
178+ - name : Set tag
179+ id : nanos_light
180+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanos_light.sh version)
179181 - name : Create or Update Release (1)
180- id : create_release_1
182+ id : create_release_0
183+ uses : softprops/action-gh-release@v1
184+ env :
185+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
186+ with :
187+ files : ./app/pkg/installer_nanos_light.sh
188+ tag_name : ${{ steps.nanos_light.outputs.tag_name }}
189+ draft : false
190+ prerelease : false
191+
192+ build_package_1 :
193+ needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
194+ if : ${{ github.ref == 'refs/heads/main' }}
195+ runs-on : ubuntu-latest
196+ container :
197+ image : zondax/builder-bolos:latest
198+ options : --user ${{ needs.configure.outputs.uid_gid }}
199+ env :
200+ BOLOS_SDK : ${{ github.workspace }}/deps/nanos-secure-sdk
201+ BOLOS_ENV : /opt/bolos
202+ HOME : /home/zondax_circle
203+ steps :
204+ - name : Checkout
205+ uses : actions/checkout@v2
206+ with :
207+ submodules : true
208+ - name : Install deps
209+ run : pip install ledgerblue
210+
211+ - name : Build NanoS XL
212+ shell : bash -l {0}
213+ run : |
214+ source $HOME/.cargo/env
215+ make SUBSTRATE_PARSER_FULL=1
216+ mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos_xl.sh
217+ - name : Set tag
218+ id : nanos_xl
219+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanos_xl.sh version)
220+ - name : Update Release
221+ id : update_release_1
181222 uses : softprops/action-gh-release@v1
182223 env :
183224 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
184225 with :
185- files : ./app/pkg/installer_s .sh
186- tag_name : ${{ steps.vars_1 .outputs.tag_name }}
226+ files : ./app/pkg/installer_nanos_xl .sh
227+ tag_name : ${{ steps.nanos_xl .outputs.tag_name }}
187228 draft : false
188229 prerelease : false
189- - name : Clear and rebuild XL version
230+
231+ build_package_2 :
232+ needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
233+ if : ${{ github.ref == 'refs/heads/main' }}
234+ runs-on : ubuntu-latest
235+ container :
236+ image : zondax/builder-bolos:latest
237+ options : --user ${{ needs.configure.outputs.uid_gid }}
238+ env :
239+ BOLOS_SDK : ${{ github.workspace }}/deps/nanosplus-secure-sdk
240+ BOLOS_ENV : /opt/bolos
241+ HOME : /home/zondax_circle
242+ steps :
243+ - name : Checkout
244+ uses : actions/checkout@v2
245+ with :
246+ submodules : true
247+ - name : Install deps
248+ run : pip install ledgerblue
249+
250+ - name : Build NanoSP XL
190251 shell : bash -l {0}
191252 run : |
192253 source $HOME/.cargo/env
193254 make SUBSTRATE_PARSER_FULL=1
194- cp rust/app/pkg/installer_s.sh rust/app/pkg/installer_baking_s.sh
195- cp app/pkg/installer_s.sh app/pkg/installer_XL_s.sh
196- - name : Set tag name var (2)
197- id : vars_2
198- run : echo ::set-output name=tag_name::$(./app/pkg/installer_XL_s.sh version)
199- - name : Create or Update Release (2)
200- id : create_release_2
255+ mv ./app/pkg/installer_s2.sh ./app/pkg/installer_nanosp_xl.sh
256+ - name : Set tag
257+ id : nanosp_xl
258+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_nanosp_xl.sh version)
259+ - name : Update Release
260+ id : update_release_2
201261 uses : softprops/action-gh-release@v1
202262 env :
203263 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
204264 with :
205- files : ./app/pkg/installer_XL_s .sh
206- tag_name : ${{ steps.vars_2 .outputs.tag_name }}
265+ files : ./app/pkg/installer_nanosp_xl .sh
266+ tag_name : ${{ steps.nanosp_xl .outputs.tag_name }}
207267 draft : false
208268 prerelease : false
0 commit comments