Skip to content

Commit 80a7171

Browse files
committed
chore: add ci, closes #14
1 parent 234ae67 commit 80a7171

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

.github/workflows/rust.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on: [push, pull_request]
2+
3+
name: Rust
4+
5+
env:
6+
RUSTDOCFLAGS: -D warnings
7+
8+
jobs:
9+
fmt-clippy-check-test:
10+
name: Format + Clippy + check + test
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: dtolnay/rust-toolchain@master
16+
with:
17+
toolchain: stable
18+
19+
- name: Set up cargo cache
20+
uses: Swatinem/rust-cache@v2
21+
22+
- name: Install cargo hack
23+
run: cargo install cargo-hack
24+
25+
- name: Rustfmt
26+
run: cargo fmt --all -- --check
27+
28+
- name: Clippy
29+
run: cargo hack clippy --workspace --all-targets -- -D warnings -W clippy::all
30+
31+
- name: Check
32+
run: cargo hack check --all
33+
34+
- name: Test
35+
run: cargo hack test --workspace

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
![ci](https://github.com/uwheel/datafusion-uwheel/actions/workflows/rust.yml/badge.svg)
2+
[![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
3+
[![Apache](https://img.shields.io/badge/license-Apache-blue.svg)](https://github.com/uwheel/datafusion-uwheel/blob/main/LICENSE.txt)
4+
15
# datafusion-uwheel
26

37
``datafusion-uwheel`` is a Datafusion query optimizer that indexes data using [µWheel](https://uwheel.rs) to accelerate query processing. The motivation behind this work is based on the following [post](https://uwheel.rs/post/datafusion/).

datafusion-uwheel/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![forbid(unsafe_code)]
2+
13
use std::{
24
collections::HashMap,
35
sync::{Arc, Mutex},

rust-toolchain

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "stable"
3+
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)