TESTING: Add a CI build/test step to the Rust project for Github. This will probably fail and require more commits to get working.

This commit is contained in:
Herbert Wolverson
2023-01-11 15:53:34 +00:00
parent 2c829fc09c
commit 8d9eee8f47

21
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Rust
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends python3-pip clang gcc gcc-multilib llvm libelf-dev git nano graphviz curl screen llvm pkg-config linux-tools-common linux-tools-`uname r`
if: matrix.os == 'ubuntu-latest'
- name: Build
run: pushd src/rust; cargo build --verbose --all; popd
- name: Run tests
run: pushd src/rust; cargo test --verbose --all; popd