11name : Build
22on :
3+ workflow_dispatch :
34 push :
45 pull_request :
56 branches :
7+ - main
68 - develop
79
810jobs :
@@ -12,13 +14,13 @@ jobs:
1214 uid_gid : ${{ steps.get-user.outputs.uid_gid }}
1315 steps :
1416 - id : get-user
15- run : echo "::set-output name= uid_gid:: $(id -u):$(id -g)"
17+ run : echo "uid_gid= $(id -u):$(id -g)" >> $GITHUB_OUTPUT
1618
1719 build :
1820 runs-on : ubuntu-latest
1921 steps :
2022 - name : Checkout
21- uses : actions/checkout@v2
23+ uses : actions/checkout@v3
2224 with :
2325 submodules : true
2426 - name : Install deps
3234 runs-on : ubuntu-latest
3335 steps :
3436 - name : Checkout
35- uses : actions/checkout@v2
37+ uses : actions/checkout@v3
3638 with :
3739 submodules : true
3840 - name : Install deps
@@ -63,22 +65,36 @@ jobs:
6365 BOLOS_SDK : ${{ github.workspace }}/deps/nanos-secure-sdk
6466 BOLOS_ENV : /opt/bolos
6567 HOME : /home/zondax_circle
68+ outputs :
69+ size : ${{steps.build.outputs.size}}
6670 steps :
6771 - name : Checkout
68- uses : actions/checkout@v2
72+ uses : actions/checkout@v3
6973 with :
7074 submodules : true
7175 - name : Build Standard app
76+ id : build
7277 shell : bash -l {0}
7378 run : |
7479 source $HOME/.cargo/env
75- make
80+ SUBSTRATE_PARSER_FULL=1 make
81+ echo "size=$(python3 deps/ledger-zxlib/scripts/getSize.py s)" >> $GITHUB_OUTPUT
7682 - name : Build SR25519 app
7783 shell : bash -l {0}
7884 run : |
7985 source $HOME/.cargo/env
8086 SUPPORT_SR25519=1 make
8187
88+ size_nano_s :
89+ needs : build_ledger
90+ runs-on : ubuntu-latest
91+ env :
92+ NANOS_LIMIT_SIZE : 136
93+ steps :
94+ - run : |
95+ echo "LNS app size: ${{needs.build_ledger.outputs.size}} KiB"
96+ [ ${{needs.build_ledger.outputs.size}} -le $NANOS_LIMIT_SIZE ]
97+
8298 test_zemu :
8399 runs-on : ubuntu-latest
84100 steps :
88104 echo $HOME
89105 echo $DISPLAY
90106 - name : Checkout
91- uses : actions/checkout@v2
107+ uses : actions/checkout@v3
92108 with :
93109 submodules : true
94110 - run : sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
98114 sudo apt-get install -y cmake binutils-dev libcurl4-openssl-dev libiberty-dev libelf-dev libdw-dev
99115 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y;
100116 - name : Install node
101- uses : actions/setup-node@v2
102- with :
103- node-version : ' 14.17.0'
117+ uses : actions/setup-node@v3
104118 - name : Install yarn
105119 run : |
106120 npm install -g yarn
@@ -120,7 +134,7 @@ jobs:
120134 runs-on : ubuntu-latest
121135 steps :
122136 - name : Checkout
123- uses : actions/checkout@v2
137+ uses : actions/checkout@v3
124138 with :
125139 submodules : true
126140 - run : sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
@@ -130,9 +144,7 @@ jobs:
130144 sudo apt-get install -y cmake binutils-dev libcurl4-openssl-dev libiberty-dev libelf-dev libdw-dev
131145 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain none -y;
132146 - name : Install node
133- uses : actions/setup-node@v2
134- with :
135- node-version : ' 14.17.0'
147+ uses : actions/setup-node@v3
136148 - name : Install yarn
137149 run : |
138150 npm install -g yarn
@@ -149,7 +161,7 @@ jobs:
149161 cd tests_zemu && yarn testSR25519
150162
151163 build_package_0 :
152- needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
164+ needs : [configure, build, build_ledger, test_zemu, test_zemu_sr25519]
153165 if : ${{ github.ref == 'refs/heads/main' }}
154166 runs-on : ubuntu-latest
155167 container :
@@ -161,7 +173,7 @@ jobs:
161173 HOME : /home/zondax_circle
162174 steps :
163175 - name : Checkout
164- uses : actions/checkout@v2
176+ uses : actions/checkout@v3
165177 with :
166178 submodules : true
167179 - name : Install deps
@@ -175,7 +187,7 @@ jobs:
175187 mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos.sh
176188 - name : Set tag
177189 id : nanos_light
178- run : echo ::set-output name= tag_name:: $(./app/pkg/installer_nanos.sh version)
190+ run : echo " tag_name= $(./app/pkg/installer_nanos.sh version)" >> $GITHUB_OUTPUT
179191 - name : Create or Update Release (1)
180192 id : create_release_0
181193 uses : softprops/action-gh-release@v1
@@ -188,7 +200,7 @@ jobs:
188200 prerelease : false
189201
190202 build_package_1 :
191- needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
203+ needs : [configure, build, build_ledger, test_zemu, test_zemu_sr25519]
192204 if : ${{ github.ref == 'refs/heads/main' }}
193205 runs-on : ubuntu-latest
194206 container :
@@ -200,7 +212,7 @@ jobs:
200212 HOME : /home/zondax_circle
201213 steps :
202214 - name : Checkout
203- uses : actions/checkout@v2
215+ uses : actions/checkout@v3
204216 with :
205217 submodules : true
206218 - name : Install deps
@@ -214,7 +226,7 @@ jobs:
214226 mv ./app/pkg/installer_s.sh ./app/pkg/installer_nanos_xl.sh
215227 - name : Set tag
216228 id : nanos_xl
217- run : echo ::set-output name= tag_name:: $(./app/pkg/installer_nanos_xl.sh version)
229+ run : echo " tag_name= $(./app/pkg/installer_nanos_xl.sh version)" >> $GITHUB_OUTPUT
218230 - name : Update Release
219231 id : update_release_1
220232 uses : softprops/action-gh-release@v1
@@ -227,7 +239,7 @@ jobs:
227239 prerelease : false
228240
229241 build_package_2 :
230- needs : [ configure, build, build_ledger, test_zemu, test_zemu_sr25519 ]
242+ needs : [configure, build, build_ledger, test_zemu, test_zemu_sr25519]
231243 if : ${{ github.ref == 'refs/heads/main' }}
232244 runs-on : ubuntu-latest
233245 container :
@@ -239,7 +251,7 @@ jobs:
239251 HOME : /home/zondax_circle
240252 steps :
241253 - name : Checkout
242- uses : actions/checkout@v2
254+ uses : actions/checkout@v3
243255 with :
244256 submodules : true
245257 - name : Install deps
@@ -253,7 +265,7 @@ jobs:
253265 mv ./app/pkg/installer_s2.sh ./app/pkg/installer_nanos_plus.sh
254266 - name : Set tag
255267 id : nanosp
256- run : echo ::set-output name= tag_name:: $(./app/pkg/installer_nanos_plus.sh version)
268+ run : echo " tag_name= $(./app/pkg/installer_nanos_plus.sh version)" >> $GITHUB_OUTPUT
257269 - name : Update Release
258270 id : update_release_2
259271 uses : softprops/action-gh-release@v1
0 commit comments