Files
darkfi/.github/workflows/rust-build.yml
2021-10-25 11:13:15 +02:00

26 lines
792 B
YAML

name: Build and Test
on: [push, pull_request]
jobs:
compile-and-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
- name: Create config directory
run: |
mkdir -p ~/.config/darkfi
- name: Test with all features
run: |
cargo test --release --all-features