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: apt update && apt install -y wget
|
||||||
- run: make lib
|
- run: make lib
|
||||||
- run: cargo fmt -- --write-mode=diff
|
- run: cargo fmt -- --write-mode=diff
|
||||||
- run: cargo build
|
- run: make build
|
||||||
- run: cargo build --release
|
- run: make release
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: cargo-{{ checksum "Cargo.lock" }}
|
key: cargo-{{ checksum "Cargo.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- ~/.cargo
|
- ~/.cargo
|
||||||
- target/
|
- target/
|
||||||
- run: cargo test
|
- run: make test
|
||||||
- run: cargo test --release
|
|
||||||
- run:
|
- run:
|
||||||
command: cargo run -- build
|
command: cargo run -- build
|
||||||
working_directory: ~/md-pdf/test-files
|
working_directory: ~/md-pdf/test-files
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -33,4 +33,8 @@ wktox: lib_path
|
||||||
|
|
||||||
lib: pandoc wktox
|
lib: pandoc wktox
|
||||||
|
|
||||||
|
test:
|
||||||
|
cargo test
|
||||||
|
cargo test --release
|
||||||
|
|
||||||
.PHONY: build pandoc lib_path wktox
|
.PHONY: build pandoc lib_path wktox
|
||||||
|
|
Reference in a new issue