Skip to content

Update to align with the new (2024/Feb) libnfs API #7

Update to align with the new (2024/Feb) libnfs API

Update to align with the new (2024/Feb) libnfs API #7

Workflow file for this run

# Directory structure
#
# By default things occur in $GITHUB_WORKSPACE; as we have to work
# with multiple directories, to keep things clean we use
# subdirectories:
#
# $GITHUB_WORKSPACE/libnfs/ The original C-base C-targetting libnfs
# $GITHUB_WORKSPACE/rs-libnfs/ The code from this repo
name: Build rs-libnfs
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
workflow_dispatch:
branches: [ "*" ]
inputs:
name:
description: "manual run"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- 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-directory: libnfs/
run: |
./bootstrap
./configure
make -j4
sudo make install
- name: Checkout rs-libnfs
uses: actions/checkout@v4
with:
path: rs-libnfs/
- name: Build rs-libnfs
working-directory: rs-libnfs/
run: cargo build --verbose
- name: Run tests
working-directory: rs-libnfs/
run: cargo test --verbose