• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Rust
2
3on: [push, pull_request]
4
5jobs:
6  build:
7    runs-on: ubuntu-latest
8    steps:
9      - uses: actions/checkout@v2
10      - name: Install latest stable
11        uses: actions-rs/toolchain@v1
12        with:
13            toolchain: stable
14            components: clippy
15      - name: check nostd
16        uses: actions-rs/cargo@v1
17        with:
18          command: check
19          args: --no-default-features
20      - name: test nostd
21        uses: actions-rs/cargo@v1
22        with:
23          command: test
24          args: --no-default-features
25      - name: check constrandom
26        uses: actions-rs/cargo@v1
27        with:
28          command: check
29          args: --no-default-features --features compile-time-rng
30      - name: test constrandom
31        uses: actions-rs/cargo@v1
32        with:
33          command: test
34          args: --no-default-features --features compile-time-rng
35      - name: check
36        uses: actions-rs/cargo@v1
37        with:
38          command: check
39      - name: test
40        uses: actions-rs/cargo@v1
41        with:
42          command: test
43      - name: Install latest nightly
44        uses: actions-rs/toolchain@v1
45        with:
46            toolchain: nightly
47            override: true
48            components: clippy
49      - name: check nightly
50        uses: actions-rs/cargo@v1
51        with:
52          command: check
53      - name: test nightly
54        uses: actions-rs/cargo@v1
55        with:
56          command: test
57      - name: check serde
58        uses: actions-rs/cargo@v1
59        with:
60          command: check
61          args: --features serde
62      - name: test serde
63        uses: actions-rs/cargo@v1
64        with:
65          command: test
66          args: --features serde
67  linux_arm7:
68    name: Linux ARMv7
69    runs-on: ubuntu-latest
70    steps:
71      - uses: actions/checkout@v2
72      - uses: actions-rs/toolchain@v1
73        with:
74          toolchain: stable
75          target: armv7-unknown-linux-gnueabihf
76          override: true
77      - uses: actions-rs/cargo@v1
78        with:
79          use-cross: true
80          command: build
81          args: --target armv7-unknown-linux-gnueabihf
82  i686-unknown-linux-gnu:
83    name: Linux i686
84    runs-on: ubuntu-latest
85    steps:
86      - uses: actions/checkout@v2
87      - uses: actions-rs/toolchain@v1
88        with:
89          toolchain: stable
90          target: i686-unknown-linux-gnu
91          override: true
92      - uses: actions-rs/cargo@v1
93        with:
94          use-cross: true
95          command: build
96          args: --target i686-unknown-linux-gnu
97  x86_64-unknown-linux-gnu:
98    name: Linux x86_64 - nightly
99    runs-on: ubuntu-latest
100    env:
101        RUSTFLAGS: -C target-feature=+aes
102    steps:
103      - uses: actions/checkout@v2
104      - uses: actions-rs/toolchain@v1
105        with:
106          toolchain: nightly
107          target: x86_64-unknown-linux-gnu
108          override: true
109      - uses: actions-rs/cargo@v1
110        with:
111          use-cross: true
112          command: build
113          args: --target x86_64-unknown-linux-gnu
114  thumbv6m:
115    name: thumbv6m
116    runs-on: ubuntu-latest
117    steps:
118      - uses: actions/checkout@v2
119      - uses: actions-rs/toolchain@v1
120        with:
121          toolchain: stable
122          target: thumbv6m-none-eabi
123          override: true
124      - uses: actions-rs/cargo@v1
125        with:
126          use-cross: true
127          command: check
128          args: --target thumbv6m-none-eabi --no-default-features
129  wasm32-unknown-unknown:
130    name: wasm
131    runs-on: ubuntu-latest
132    steps:
133      - uses: actions/checkout@v2
134      - uses: actions-rs/toolchain@v1
135        with:
136          toolchain: stable
137          target: wasm32-unknown-unknown
138          override: true
139      - uses: actions-rs/cargo@v1
140        with:
141          use-cross: true
142          command: check
143          args: --target wasm32-unknown-unknown