forked from NVIDIA/aistore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
41 lines (40 loc) · 1.09 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
37
38
39
40
41
name: 'Run AIStore'
description: 'Run AIStore'
inputs:
targets:
required: true
type: string
default: '1'
description: 'Number of storage targets'
proxies:
required: true
type: string
default: '1'
description: 'Number of proxies (gateways)'
mountpaths:
required: true
type: string
default: '1'
description: 'Number of local mountpaths (enter 0 for preconfigured filesystems)'
runs:
using: "composite"
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
- name: Setup additional system libraries
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update
sudo apt install -y xattr attr
fi
- name: Build and deploy AIStore locally
shell: bash
run: |
export GOPATH="$(go env GOPATH)"
git clone https://github.com/NVIDIA/aistore.git
cd aistore
./scripts/clean_deploy.sh --target-cnt ${{ inputs.targets }} --proxy-cnt ${{ inputs.proxies }} --mountpath-cnt ${{ inputs.mountpaths }}
make cli