From 2678310a9cf8e7301e2fcc6e46d64072c741ddfa Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Tue, 25 Apr 2023 16:08:19 +0100 Subject: [PATCH] Create rust workflow Add a build to run the rust pipeline --- .github/workflows/rust-build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/rust-build.yml diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml new file mode 100644 index 00000000..bfa6e5ae --- /dev/null +++ b/.github/workflows/rust-build.yml @@ -0,0 +1,28 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + PKG_CONFIG_PATH: "/usr/lib64/pkgconfig" + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Install packages + run: | + sudo apt-get update && sudo apt-get install -y libbpf-dev + + - name: Build + working-directory: /cndp/lang/rs + run: CNDP_INSTALL_PATH="/cndp" cargo install --root /cndp/usr/local/ --path examples/fwd