Skip to content

Commit

Permalink
👷 Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurlm committed Nov 13, 2023
1 parent 050942c commit f01b48f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Swatinem/rust-cache@v2

- name: Lint
run: cargo clippy
- name: Format
run: cargo fmt --check
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Run rust full binding example:
Following package must be install to build the library:

- `cmake`
- a C++ compiler
- a C++ compiler (with C++17 support)
- `rustup` / `rustc` / `cargo` (obviously 😉)
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [x] Improve CMakeLists.txt.
- [x] Make `build.rs` less environment dependent.
- [ ] Add CI.
- [x] Add CI.
- [ ] Add basic capabilities for order sending / receiving.
- [ ] Doc.
- [ ] Explain about design.
Expand Down

0 comments on commit f01b48f

Please sign in to comment.