Skip to content

Commit db760cd

Browse files
committed
Add simple workflow to build project
1 parent ee9e82b commit db760cd

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

rust.yml renamed to .github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19+
- name: Install dependencies
20+
run: sudo apt-get install gcc glusterfs-common libglusterfs-dev llvm-dev libclang-dev clang
1921
- name: Build
2022
run: cargo build --verbose
2123
- name: Run tests

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ documentation = "https://docs.rs/gfapi-sys"
88
license = "MIT"
99
edition = '2018'
1010

11+
[build-dependencies]
12+
bindgen = "0.53.1"
13+
1114
[dependencies]
1215
errno = "^0.2"
1316
libc = "^0.2"

scripts/install_gluster.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apt-get install glusterfs-server
2+
3+
# Enable and start GlusterFS SystemD Unit
4+
systemctl enable glusterd
5+
systemctl start glusterd
6+
7+
# Create directory for brick
8+
mkdir -p /data/glusterfs/myvol1/brick1
9+
10+
# Create volume in gluster using parameter 'force' to skip verification to create from '/'
11+
gluster volume create myvol1 $HOSTNAME:/data/glusterfs/myvol1/brick1/brick force
12+
13+
# Start server
14+
gluster volume start myvol1
15+
16+
# To mount on clients
17+
mkdir -p /mnt/glusterfs
18+
mount -t glusterfs $HOSTNAME:myvol1 /mnt/glusterfs
19+

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//! tasks such as cloud storage and media streaming.
44
//! This crate exposes the glfs module for low level interaction with the api.
55
//! It also exposes a set of safe wrappers in the gluster module
6-
76
#[macro_use]
87
extern crate log;
98

109
pub mod glfs;
1110
pub mod gluster;
11+

0 commit comments

Comments
 (0)