-
Notifications
You must be signed in to change notification settings - Fork 28
36 lines (34 loc) · 914 Bytes
/
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
name: CI
on:
push:
pull_request:
schedule: [cron: "40 1 * * *"]
jobs:
test:
name: Rust ${{matrix.rust}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust: [nightly, beta, stable]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.rust}}
profile: minimal
override: true
- run: cargo build --features bench
if: matrix.rust == 'nightly'
- run: cargo test --features bench
if: matrix.rust == 'nightly'
- run: cargo bench --features bench
if: matrix.rust == 'nightly'
- run: cargo build
tables:
name: Verify tables
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Verify regenerated files
run: ./scripts/unicode.py && rustfmt tables.rs && diff tables.rs src/tables.rs