Skip to content

Commit 2ba9af3

Browse files
committed
fix: conditionnal installation of deps in ci
1 parent 618dcd8 commit 2ba9af3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ jobs:
5656
toolchain: ${{ matrix.rust }}
5757
override: true
5858

59-
- name: Install fontconfig and pkg-config
59+
- name: Install fontconfig on Ubuntu
60+
if: matrix.os == 'ubuntu-latest'
6061
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev pkg-config
6162

63+
- name: Install fontconfig on macOS
64+
if: matrix.os == 'macos-latest'
65+
run: brew install fontconfig pkg-config
66+
6267
- name: Run tests
6368
uses: actions-rs/cargo@v1
6469
with:
@@ -103,6 +108,9 @@ jobs:
103108
- name: Checkout sources
104109
uses: actions/checkout@v2
105110

111+
- name: Install fontconfig and pkg-config
112+
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev pkg-config
113+
106114
- name: Install stable toolchain
107115
uses: actions-rs/toolchain@v1
108116
with:
@@ -128,6 +136,9 @@ jobs:
128136
steps:
129137
- uses: actions/checkout@v2
130138

139+
- name: Install fontconfig and pkg-config
140+
run: sudo apt-get update && sudo apt-get install -y libfontconfig1-dev pkg-config
141+
131142
- uses: actions-rs/toolchain@v1
132143
with:
133144
toolchain: 1.82.0

0 commit comments

Comments
 (0)