From 557c5a9699d4c9266b3f8ba569b1b74d1c76f588 Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Wed, 3 Apr 2024 22:32:03 -0700 Subject: [PATCH] path tweaks --- .github/workflows/rust.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 17943eb..d3d5777 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,13 @@ -name: Rust +# 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: @@ -26,16 +35,20 @@ jobs: repository: cwedgwood/libnfs path: libnfs/ ref: master - - name: Build and install libnfs (working in libnfs/) + - name: Build and install libnfs + working-directory: libnfs/ run: | - cd libnfs/ ./bootstrap ./configure make -j4 sudo make install - - name: 'Checkout (of this "rs-libnfs" repo)' + - 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