Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ddfb255

Browse files
add: set up rust workflow, support sqlite3 enviroment
1 parent 651c668 commit ddfb255

File tree

4 files changed

+43
-5
lines changed

4 files changed

+43
-5
lines changed

‎.github/workflows/rust.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: leetcode-cli
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [macOS-latest, ubuntu-latest]
11+
steps:
12+
- name: Checkout the source code
13+
uses: actions/checkout@master
14+
with:
15+
rust-version: nightly
16+
- name: Environment
17+
run: |
18+
rustup update
19+
rustup toolchain install nightly
20+
21+
if [[ "$(uname)" == 'Darwin' ]]; then
22+
brew update
23+
brew install sqlite3
24+
else
25+
sudo apt-get update -y
26+
sudo apt-get install -y libsqlite3-dev libdbus-1-dev
27+
fi
28+
- name: Build
29+
run: cargo +nightly build --verbose
30+
- name: Run tests
31+
run: cargo +nightly test --verbose

‎CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v0.2.15
2+
Allow for custom testcases with the `leetcode test` command, and some minor edits
3+
4+
## v0.2.14
5+
Corrects file suffixes for c++ and c# files
6+
17
## v0.2.13
28
fix percent length panic
39

‎README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# leetcode-cli
2-
[![doc](https://img.shields.io/badge/current-docs-green.svg)](https://docs.rs/leetcode-cli/)
3-
[![Crates.io](https://img.shields.io/crates/v/leetcode-cli.svg)](https://crates.io/crates/leetcode-cli)
4-
[![Crates.io](https://img.shields.io/crates/d/leetcode-cli.svg)](https://crates.io/crates/leetcode-cli)
2+
![Rust](https://github.com/clearloop/leetcode-cli/workflows/Rust/badge.svg)
3+
[![crate](https://img.shields.io/crates/v/leetcode-cli.svg)](https://crates.io/crates/leetcode-cli)
4+
[![doc](https://img.shields.io/badge/current-docs-brightgreen.svg)](https://docs.rs/leetcode-cli/)
5+
[![dependency status](https://deps.rs/repo/github/clearloop/leetcode-cli/status.svg)](https://deps.rs/repo/github/clearloop/leetcode-cli)
6+
[![downloads](https://img.shields.io/crates/d/leetcode-cli.svg)](https://crates.io/crates/leetcode-cli)
57
[![LICENSE](https://img.shields.io/crates/l/leetcode-cli.svg)](https://choosealicense.com/licenses/mit/)
68

79
## Contributors

‎src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,13 @@ extern crate diesel;
246246
// show docs
247247
pub mod cache;
248248
pub mod cfg;
249+
pub mod cli;
249250
pub mod cmds;
250251
pub mod err;
251252
pub mod flag;
252253
pub mod helper;
253254
pub mod plugins;
254255
pub mod pym;
255-
// really pub
256-
pub mod cli;
257256

258257
// re-exports
259258
pub use cache::Cache;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /