• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on:
2  push:
3    branches: [main]
4  pull_request:
5    branches: [main]
6
7name: Continuous integration
8
9jobs:
10  test :
11    name: Test Suite
12    runs-on: ubuntu-latest
13
14    strategy:
15      matrix:
16        target:
17          - x86_64-unknown-linux-gnu
18          - i686-unknown-linux-musl
19
20    steps:
21      - uses: actions/checkout@v2
22      - uses: actions-rs/toolchain@v1
23        with:
24          profile: minimal
25          toolchain: stable
26          target: ${{ matrix.target }}
27          override: true
28
29      - uses: actions-rs/cargo@v1
30        with:
31          command: test
32          args: --target ${{ matrix.target }}
33
34      - uses: actions-rs/cargo@v1
35        with:
36          command: test
37          args: --target ${{ matrix.target }} --features std
38
39  # only cargo build
40  msrv:
41    name: MSRV check
42    runs-on: ubuntu-latest
43
44    strategy:
45      matrix:
46        target:
47          - x86_64-unknown-linux-gnu
48          - i686-unknown-linux-musl
49
50    steps:
51      - uses: actions/checkout@v2
52      - uses: actions-rs/toolchain@v1
53        with:
54          profile: minimal
55          toolchain: 1.31.0
56          target: ${{ matrix.target }}
57          override: true
58
59      - uses: actions-rs/cargo@v1
60        with:
61          command: build
62          args: --target ${{ matrix.target }}
63
64      - uses: actions-rs/cargo@v1
65        with:
66          command: build
67          args: --target ${{ matrix.target }} --features std
68