Skip to content

Commit

Permalink
refactor: refactor book render.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Jul 1, 2024
1 parent e7f36f8 commit d4d0dcf
Show file tree
Hide file tree
Showing 882 changed files with 2,353 additions and 37,078 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.* linguist-language=Rust
40 changes: 40 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Rust CI

on:
push:
branches:
- main
- dev # 在 push 到 main 或 dev 分支时触发
pull_request:
branches:
- main
- dev # 在拉取请求到 main 或 dev 分支时触发

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Cargo Tarpaulin
run: cargo install cargo-tarpaulin
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run cargo-tarpaulin
run: cargo tarpaulin --out Xml
- name: Run cargo-audit
run: cargo install cargo-audit && cargo-audit audit
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
26 changes: 3 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
# Compiled class file
*.class

# Log file
.DS_Store
*.log
/target

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
index_dark.html
cobertura.xml
Loading

0 comments on commit d4d0dcf

Please sign in to comment.