Skip to content

Commit

Permalink
Create rust workflow
Browse files Browse the repository at this point in the history
Add a build to run the rust pipeline
  • Loading branch information
maryamtahhan authored Apr 25, 2023
1 parent f86286d commit 2678310
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2678310

Please sign in to comment.