Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit c878672

Browse files
committed
feat: add ci for build and zemu test
1 parent 2ac7285 commit c878672

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/main.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

0 commit comments

Comments
 (0)