-
Notifications
You must be signed in to change notification settings - Fork 21
41 lines (39 loc) · 1.2 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: ["master"]
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
matrix:
rust: [beta, stable, 1.66.0]
os: [macos-latest, ubuntu-latest, windows-latest]
experimental: [false]
# Allow nightly jobs to fail without failing the workflow run.
include:
- rust: nightly
os: macos-latest
experimental: true
- rust: nightly
os: ubuntu-latest
experimental: true
- rust: nightly
os: windows-latest
experimental: true
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- run: cargo test # check default features
- run: cargo test --features specimen # check with font-specimen
- run: cargo check --no-default-features --features flate2_zlib # Check without outline feature.
- run: cargo check --no-default-features --features flate2_rust