Skip to content

Commit 14eb3eb

Browse files
authored
Complete rewrite of svg2pdf (#34)
1 parent 39daf9f commit 14eb3eb

2,255 files changed

Lines changed: 138577 additions & 3652 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,54 @@
11
name: Continuous integration
22
on: [push, pull_request]
33

4+
env:
5+
RUSTFLAGS: "-Dwarnings"
6+
RUSTDOCFLAGS: "-Dwarnings"
7+
48
jobs:
5-
ci:
9+
tests:
10+
name: Tests
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
shell: bash
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Get Rust toolchain
20+
uses: dtolnay/rust-toolchain@stable
21+
22+
- name: Get Rust cache
23+
uses: Swatinem/rust-cache@v2
24+
25+
- name: Get pdfium
26+
run: |
27+
curl -LO https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F5880/pdfium-linux-x64.tgz
28+
mkdir pdfium-linux-x64
29+
tar -xvzf ./pdfium-linux-x64.tgz -C pdfium-linux-x64
30+
mv ./pdfium-linux-x64/lib/libpdfium.so ./tests/pdfium_lib
31+
32+
- name: Build svg2pdf
33+
run: cargo build --all --release
34+
35+
- name: Run tests
36+
id: tests
37+
run: cargo test --release --workspace
38+
39+
- name: Upload artifacts
40+
if: failure()
41+
uses: actions/upload-artifact@v3
42+
with:
43+
path: ./tests/diff
44+
45+
checks:
46+
name: Check clippy, formatting, and documentation
647
runs-on: ubuntu-latest
748
steps:
849
- uses: actions/checkout@v3
950
- uses: dtolnay/rust-toolchain@stable
10-
- run: cargo build
11-
- run: cargo test
51+
- uses: Swatinem/rust-cache@v2
52+
- run: cargo clippy --all-targets --features cli
53+
- run: cargo fmt --check --all
54+
- run: cargo doc --workspace --no-deps

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
/target
2-
Cargo.lock
1+
.idea
2+
.vscode
33
.DS_Store
4+
/target
5+
/tests/pdf
6+
/tests/diff
7+
/tests/typst.typ
8+
/tests/typst.pdf

0 commit comments

Comments
 (0)