Skip to content

Commit 32623b8

Browse files
committed
MAINT: Change from travis to github actions
1 parent d5e9acd commit 32623b8

File tree

3 files changed

+54
-44
lines changed

3 files changed

+54
-44
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
branches: [ master ]
6+
7+
name: Continuous integration
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
CARGO_INCREMENTAL: 0
12+
13+
jobs:
14+
tests:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
include:
19+
- rust: 1.36.0 # MSRV
20+
features: serde
21+
- rust: stable
22+
features: serde
23+
- rust: stable
24+
features: array-sizes-33-128 array-sizes-129-255
25+
- rust: beta
26+
features: serde
27+
- rust: nightly
28+
features: serde unstable-const-fn
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
profile: minimal
35+
toolchain: ${{ matrix.rust }}
36+
override: true
37+
- name: Tests
38+
run: |
39+
cargo build --verbose --features "${{ matrix.features }}"
40+
cargo doc --verbose --features "${{ matrix.features }}"
41+
cargo test --verbose --features "${{ matrix.features }}"
42+
cargo test --release --verbose --features "${{ matrix.features }}"
43+
- name: Test run benchmarks
44+
if: matrix.bench != ''
45+
run: cargo test -v --benches
46+
47+
miri:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Miri
52+
run: ci/miri.sh
53+

.travis.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

ci/miri.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env sh
1+
#!/bin/sh
22

33
set -ex
44

0 commit comments

Comments
 (0)