88 runs-on : ubuntu-latest
99 steps :
1010 - uses : actions/checkout@v4
11+ - name : Install fontconfig
12+ run : sudo apt-get update && sudo apt-get install -y fontconfig
1113 - uses : actions-rs/toolchain@v1
1214 with :
1315 profile : minimal
@@ -20,68 +22,77 @@ jobs:
2022 msrv :
2123 runs-on : ubuntu-latest
2224 steps :
23- - uses : actions/checkout@v4
24- with :
25+ - uses : actions/checkout@v4
26+ with :
2527 submodules : recursive
26- - uses : actions-rs/toolchain@v1
27- with :
28- toolchain : 1.56.0
28+ - name : Install fontconfig
29+ run : sudo apt-get update && sudo apt-get install -y fontconfig
30+ - uses : actions-rs/toolchain@v1
31+ with :
32+ toolchain : 1.88.0
2933 override : true
3034 args : --all-features
3135 build_and_test :
3236 runs-on : ${{ matrix.os }}
3337 strategy :
34- matrix :
35- os : [ubuntu-latest, windows-latest, macos-latest]
38+ matrix :
39+ os : [ubuntu-latest, windows-latest, macos-latest]
3640 steps :
37- - uses : actions/checkout@v4
38- with :
41+ - uses : actions/checkout@v4
42+ with :
3943 submodules : recursive
40- - uses : actions-rs/toolchain@v1
41- with :
44+ - name : Install fontconfig
45+ if : runner.os == 'Linux'
46+ run : sudo apt-get update && sudo apt-get install -y fontconfig
47+ - uses : actions-rs/toolchain@v1
48+ with :
4249 toolchain : stable
4350 override : true
44- - uses : actions-rs/cargo@v1
45- with :
51+ - uses : actions-rs/cargo@v1
52+ with :
4653 command : test
4754 args : --verbose
48- - uses : actions-rs/cargo@v1
49- with :
55+ - uses : actions-rs/cargo@v1
56+ with :
5057 command : test
5158 args : --verbose --no-default-features --features=svg_backend --lib
5259 test_all_features :
5360 runs-on : ubuntu-latest
5461 steps :
55- - uses : actions/checkout@v4
56- with :
62+ - uses : actions/checkout@v4
63+ with :
5764 submodules : recursive
58- - uses : actions-rs/toolchain@v1
59- with :
65+ - name : Install fontconfig
66+ run : sudo apt-get update && sudo apt-get install -y fontconfig
67+ - uses : actions-rs/toolchain@v1
68+ with :
6069 toolchain : stable
6170 override : true
62- - uses : actions-rs/cargo@v1
63- with :
71+ - uses : actions-rs/cargo@v1
72+ with :
6473 command : test
6574 args : --verbose --all-features
6675 run_all_examples :
6776 runs-on : ubuntu-latest
6877 steps :
69- - uses : actions/checkout@v4
70- with :
78+ - uses : actions/checkout@v4
79+ with :
7180 submodules : recursive
72- - uses : actions-rs/cargo@v1
73- with :
81+ - name : Install fontconfig
82+ run : sudo apt-get update && sudo apt-get install -y fontconfig
83+ - uses : actions-rs/cargo@v1
84+ with :
7485 command : build
7586 args : --verbose --release --examples
76- - name : Run all the examples
77- run : |
78- cd plotters
79- for example in examples/*.rs
80- do
81- ../target/release/examples/$(basename ${example} .rs)
82- done
83- tar -czvf example-outputs.tar.gz plotters-doc-data
84- - uses : actions/upload-artifact@v4
85- with :
87+ - name : Run all the examples
88+ run : |
89+ cd plotters
90+ for example in examples/*.rs
91+ do
92+ ../target/release/examples/$(basename ${example} .rs)
93+ done
94+ tar -czvf example-outputs.tar.gz plotters-doc-data
95+ - uses : actions/upload-artifact@v4
96+ with :
8697 name : example-outputs
8798 path : plotters/example-outputs.tar.gz
0 commit comments