Skip to content

Commit

Permalink
wf test
Browse files Browse the repository at this point in the history
  • Loading branch information
cwedgwood committed Apr 4, 2024
1 parent 3c20b71 commit 4d174a7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,40 @@ name: Rust

on:
push:
branches: [ "master" ]
branches: [ "*" ]
pull_request:
branches: [ "master" ]
branches: [ "*" ]
workflow_dispatch:
branches: [ "*" ]
inputs:
name:
description: "manual run"

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install libnfs-dev
run: sudo apt-get install -y libnfs-dev
- name: Build
run: cargo build --verbose
- name: Install prerequisites
run: sudo apt-get install -y libkrb5-dev
- name: Clone libnfs
uses: actions/checkout@v4
with:
repository: cwedgwood/libnfs
path: libnfs/
ref: master
- name: Build and install libnfs (working in libnfs/)
run: |
cd libnfs/
./bootstrap
./configure
make -j4
sudo make install
- name: 'Checkout (of this "rs-libnfs" repo)'
uses: actions/checkout@v4
- name: Build rs-libnfs
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libnfs"
version = "2.0.0"
version = "0.2.0"
authors = ["Chris Holcombe <[email protected]>"]
description = "libnfs bindings allow you to create nfs mounts in memory/userspace"
homepage = "https://github.com/cholcombe973/libnfs"
Expand All @@ -12,8 +12,9 @@ keywords = ["nfs"]
categories = ["api-bindings", "network-programming", "filesystem", "external-ffi-bindings"]
edition = '2021'


[dependencies]
libc = "~0.2"
libnfs-sys = "~0.2"
# Presently the version of crates.io doesn't work (needs update)
libnfs-sys = { git = "https://github.com/cwedgwood/rs-libnfs-sys" }
nix = "~0.25"

0 comments on commit 4d174a7

Please sign in to comment.