This repository was archived by the owner on Oct 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+ - develop
9
+ - master # for safety reasons
10
+ - dev # for safety reasons
11
+
12
+ jobs :
13
+ configure :
14
+ runs-on : ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
15
+ outputs :
16
+ uid_gid : ${{ steps.get-user.outputs.uid_gid }}
17
+ steps :
18
+ - id : get-user
19
+ run : echo "uid_gid=$(id -u):$(id -g)" >> $GITHUB_OUTPUT
20
+
21
+ build_ledger :
22
+ runs-on : ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
23
+ steps :
24
+ - name : Install dependencies
25
+ run : |
26
+ sudo apt-get update
27
+ sudo apt-get install -y curl protobuf-compiler build-essential git wget unzip python3 python3-pip \
28
+ libssl-dev libffi-dev libreadline-dev zlib1g-dev libbz2-dev libsqlite3-dev libncurses5-dev \
29
+ libgdbm-dev libnss3-dev liblzma-dev libxml2-dev libxmlsec1-dev libffi-dev libyaml-dev \
30
+ clang gcc-arm-none-eabi gcc-multilib
31
+ - name : Install rust
32
+ uses : actions-rs/toolchain@v1
33
+ with :
34
+ toolchain : nightly-2023-11-10
35
+ - name : Checkout
36
+ uses : actions/checkout@v4
37
+ with :
38
+ submodules : true
39
+ - name : Install node
40
+ uses : actions/setup-node@v4
41
+ with :
42
+ node-version : 18
43
+ - name : Install yarn and yalc
44
+ run : |
45
+ npm install -g yarn
46
+ npm install -g yalc
47
+ - name : Checkout ironfish repo
48
+ run : git clone https://github.com/iron-fish/ironfish.git
49
+ - name : Build ironfish
50
+ run : |
51
+ cd ironfish
52
+ yarn install
53
+ cd ironfish-rust-nodejs
54
+ yalc publish
You can’t perform that action at this time.
0 commit comments