2222 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
2323 make deps
2424 brew install conan
25+ conan config install https://github.com/conan-io/conanclientcert.git
2526 - run : cmake -DCMAKE_BUILD_TYPE=Debug . && make
2627 - run : GTEST_COLOR=1 ASAN_OPTIONS=detect_leaks=0 ctest -VV
2728
@@ -45,11 +46,11 @@ jobs:
4546 cd ./app/rust
4647 cargo clippy --version
4748 cargo clippy --all-features --all-targets || true
48- - name : audit
49- run : |
50- cd ./app/rust
51- cargo audit --version
52- cargo audit
49+ # - name: audit
50+ # run: |
51+ # cd ./app/rust
52+ # cargo audit --version
53+ # cargo audit
5354 - name : run tests
5455 run : |
5556 cd ./app/rust
@@ -102,7 +103,7 @@ jobs:
102103 - name : Install node
103104 uses : actions/setup-node@v2
104105 with :
105- node-version : ' 14.4 .0'
106+ node-version : ' 14.17 .0'
106107 - name : Install yarn
107108 run : |
108109 npm install -g yarn
@@ -134,7 +135,7 @@ jobs:
134135 - name : Install node
135136 uses : actions/setup-node@v2
136137 with :
137- node-version : ' 14.4 .0'
138+ node-version : ' 14.17 .0'
138139 - name : Install yarn
139140 run : |
140141 npm install -g yarn
@@ -149,3 +150,60 @@ jobs:
149150 run : |
150151 export PATH=~/.cargo/bin:$PATH
151152 cd tests_zemu && yarn testSR25519
153+
154+ build_package :
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+ - name : Build
173+ shell : bash -l {0}
174+ run : |
175+ source $HOME/.cargo/env
176+ make SUBSTRATE_PARSER_FULL=0
177+ - name : Set tag name var (1)
178+ id : vars_1
179+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_s.sh version)
180+ - name : Create or Update Release (1)
181+ id : create_release_1
182+ uses : softprops/action-gh-release@v1
183+ env :
184+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
185+ with :
186+ files : ./app/pkg/installer_s.sh
187+ tag_name : ${{ steps.vars_1.outputs.tag_name }}
188+ draft : false
189+ prerelease : false
190+ - name : Clear and rebuild XL version
191+ shell : bash -l {0}
192+ run : |
193+ source $HOME/.cargo/env
194+ make SUBSTRATE_PARSER_FULL=1
195+ cp rust/app/pkg/installer_s.sh rust/app/pkg/installer_baking_s.sh
196+ cp app/pkg/installer_s.sh app/pkg/installer_XL_s.sh
197+ - name : Set tag name var (2)
198+ id : vars_2
199+ run : echo ::set-output name=tag_name::$(./app/pkg/installer_XL_s.sh version)
200+ - name : Create or Update Release (2)
201+ id : create_release_2
202+ uses : softprops/action-gh-release@v1
203+ env :
204+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
205+ with :
206+ files : ./app/pkg/installer_XL_s.sh
207+ tag_name : ${{ steps.vars_2.outputs.tag_name }}
208+ draft : false
209+ prerelease : false
0 commit comments