-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
36 lines (34 loc) · 1.24 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'Install Minimina'
description: 'Installs the minimina package from a specified stream or from a specific commit or branch.'
inputs:
stream:
description: 'Stream for the package - can be stable or unstable.'
required: true
default: 'stable'
commit_or_branch:
description: 'Specific commit hash or branch name to clone and build from source.'
required: false
runs:
using: 'composite'
steps:
- name: Install from package
if: inputs.commit_or_branch == ''
run: |
echo "deb [trusted=yes] http://packages.o1test.net ubuntu ${{ inputs.stream }}" | sudo tee /etc/apt/sources.list.d/mina.list
sudo apt-get update
sudo apt-get install -y minimina
mkdir -p minimina_home
echo "MINIMINA_HOME=$(pwd)/minimina_home" >> $GITHUB_ENV
shell: bash
- name: Install and build from source
if: inputs.commit_or_branch != ''
run: |
git clone https://github.com/MinaFoundation/minimina.git
cd minimina
git checkout ${{ inputs.commit_or_branch }}
cargo build
sudo cp target/debug/minimina /usr/local/bin/minimina
mkdir -p minimina_home
echo "MINIMINA_HOME=$(pwd)/minimina_home" >> $GITHUB_ENV
cd -
shell: bash