Use makefile in CI
This commit is contained in:
parent
91364230a6
commit
4adbe45409
2 changed files with 7 additions and 4 deletions
|
@ -14,15 +14,14 @@ jobs:
|
|||
- run: apt update && apt install -y wget
|
||||
- run: make lib
|
||||
- run: cargo fmt -- --write-mode=diff
|
||||
- run: cargo build
|
||||
- run: cargo build --release
|
||||
- run: make build
|
||||
- run: make release
|
||||
- save_cache:
|
||||
key: cargo-{{ checksum "Cargo.lock" }}
|
||||
paths:
|
||||
- ~/.cargo
|
||||
- target/
|
||||
- run: cargo test
|
||||
- run: cargo test --release
|
||||
- run: make test
|
||||
- run:
|
||||
command: cargo run -- build
|
||||
working_directory: ~/md-pdf/test-files
|
||||
|
|
4
Makefile
4
Makefile
|
@ -33,4 +33,8 @@ wktox: lib_path
|
|||
|
||||
lib: pandoc wktox
|
||||
|
||||
test:
|
||||
cargo test
|
||||
cargo test --release
|
||||
|
||||
.PHONY: build pandoc lib_path wktox
|
||||
|
|
Reference in a new issue