• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Push Check
2
3on: [push]
4
5jobs:
6  msrv:
7    runs-on: ubuntu-latest
8    steps:
9    - uses: actions/checkout@v1
10      with:
11          submodules: recursive
12    - uses: actions-rs/toolchain@v1
13      with:
14          toolchain: 1.39.0
15          override: true
16    - uses: actions-rs/cargo@v1
17      with:
18          command: build
19          args: --verbose --no-default-features --features=svg_backend,chrono,image,deprecated_items,all_series,all_elements
20  build_and_test:
21    runs-on: ${{ matrix.os }}
22    strategy:
23        matrix:
24            os: [ubuntu-latest, windows-latest, macos-latest]
25    steps:
26    - uses: actions/checkout@v1
27      with:
28          submodules: recursive
29    - uses: actions-rs/toolchain@v1
30      with:
31          toolchain: stable
32          override: true
33    - uses: actions-rs/cargo@v1
34      with:
35          command: test
36          args: --verbose
37    - uses: actions-rs/cargo@v1
38      with:
39          command: test
40          args: --verbose --no-default-features --lib
41  test_all_features:
42    runs-on: ubuntu-latest
43    steps:
44    - uses: actions/checkout@v1
45      with:
46          submodules: recursive
47    - uses: actions-rs/toolchain@v1
48      with:
49          toolchain: stable
50          override: true
51    - uses: actions-rs/cargo@v1
52      with:
53          command: test
54          args: --verbose --all-features
55  run_all_examples:
56    runs-on: ubuntu-latest
57    steps:
58    - uses: actions/checkout@v1
59      with:
60          submodules: recursive
61    - uses: actions-rs/cargo@v1
62      with:
63          command: build
64          args: --verbose --release --examples
65    - name: Run all the examples
66      run: for example in examples/*.rs; do ./target/release/examples/$(basename ${example} .rs); done && tar -czvf example-outputs.tar.gz plotters-doc-data
67    - uses: actions/upload-artifact@v1
68      with:
69          name: example-outputs
70          path: example-outputs.tar.gz
71