Skip to content

Commit 9b38f1a

Browse files
committed
Update rust.yml
1 parent 60ca417 commit 9b38f1a

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
with:
3434
toolchain: stable
3535
override: true
36+
37+
- name: Install system dependencies
38+
run: sudo apt-get update && sudo apt-get install -y libglib2.0-dev pkg-config
39+
40+
# Set PKG_CONFIG_PATH if needed for poppler deps
41+
- name: Set PKG_CONFIG_PATH
42+
run: echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
3643

3744
- name: Build (Debug)
3845
run: cargo build --verbose
@@ -41,14 +48,4 @@ jobs:
4148
run: cargo build --release --verbose
4249

4350
- name: Run Tests
44-
run: cargo test --verbose
45-
46-
- name: Install system dependencies
47-
run: sudo apt-get update && sudo apt-get install -y libglib2.0-dev pkg-config
48-
49-
# Set PKG_CONFIG_PATH if needed for poppler deps
50-
- name: Set PKG_CONFIG_PATH
51-
run: echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
52-
53-
- name: Build
54-
run: cargo build --verbose
51+
run: cargo test --verbose

0 commit comments

Comments
 (0)