Skip to content

Commit 37e6910

Browse files
authored
Merge pull request #78 from palfrey/github-ci
Redo Linux/Mac CI with github actions
2 parents 22b40c0 + c43ebc7 commit 37e6910

4 files changed

Lines changed: 96 additions & 59 deletions

File tree

.github/workflows/ci.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
7+
name: Continuous integration
8+
9+
jobs:
10+
test:
11+
name: Test suite
12+
strategy:
13+
matrix:
14+
rust:
15+
- 1.32.0
16+
- stable
17+
- beta
18+
- nightly
19+
os:
20+
- macos-latest
21+
- ubuntu-latest
22+
arch:
23+
- i686
24+
- x86_64
25+
features:
26+
- default
27+
- runtime-dispatch-simd
28+
- generic-simd
29+
exclude:
30+
- rust: 1.32.0
31+
features: generic-simd
32+
- rust: stable
33+
features: generic-simd
34+
- rust: beta
35+
features: generic-simd
36+
37+
env:
38+
ARCH: ${{ matrix.arch }}
39+
runs-on: ${{ matrix.os }}
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions-rs/toolchain@v1.0.7
43+
with:
44+
profile: minimal
45+
toolchain: ${{ matrix.rust }}
46+
override: true
47+
components: clippy, rustfmt
48+
- uses: Swatinem/rust-cache@v2
49+
- name: Build (1.32.0, default)
50+
uses: actions-rs/cargo@v1.0.3
51+
with:
52+
command: build
53+
args: --release
54+
if: ${{ matrix.features == 'default' && matrix.rust == '1.32.0' }}
55+
- name: Build (1.32.0, non-default)
56+
uses: actions-rs/cargo@v1.0.3
57+
with:
58+
command: build
59+
args: --release --features ${{ matrix.features }}
60+
if: ${{ matrix.features != 'default' && matrix.rust == '1.32.0' }}
61+
- name: Test (default)
62+
uses: actions-rs/cargo@v1.0.3
63+
with:
64+
command: test
65+
args: --release
66+
if: ${{ matrix.features == 'default' && matrix.rust != '1.32.0' }}
67+
- name: Test (non-default)
68+
uses: actions-rs/cargo@v1.0.3
69+
with:
70+
command: test
71+
args: --release --features ${{ matrix.features }}
72+
if: ${{ matrix.features != 'default' && matrix.rust != '1.32.0' }}
73+
- name: bench
74+
uses: actions-rs/cargo@v1.0.3
75+
with:
76+
command: bench
77+
env:
78+
COUNTS: 0,10,1000,100000,10000000
79+
if: ${{ matrix.rust != '1.32.0' }}
80+
81+
# Fails currently on check_count_overflow_many
82+
#
83+
# miri:
84+
# name: MIRI testing
85+
# runs-on: ubuntu-latest
86+
# steps:
87+
# - uses: actions/checkout@v2.3.4
88+
# - uses: actions-rs/toolchain@v1.0.7
89+
# with:
90+
# profile: minimal
91+
# toolchain: nightly
92+
# override: true
93+
# - name: Run miri
94+
# run: ./ci/miri.sh

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Counting bytes really fast
44

5-
[![Build Status](https://travis-ci.org/llogiq/bytecount.svg?branch=master)](https://travis-ci.org/llogiq/bytecount)
5+
[![Continuous integration](https://github.com/llogiq/bytecount/actions/workflows/ci.yml/badge.svg)](https://github.com/llogiq/bytecount/actions/workflows/ci.yml)
66
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/llogiq/bytecount?svg=true)](https://ci.appveyor.com/project/llogiq/bytecount)
77
[![Current Version](https://img.shields.io/crates/v/bytecount.svg)](https://crates.io/crates/bytecount)
88
[![License: Apache 2.0/MIT](https://img.shields.io/crates/l/bytecount.svg)](#license)

ci/miri.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ rustup component add miri
99

1010
# Run tests
1111
cargo miri test
12-
cargo miri test --target=mips64-unknown-linux-gnuabi64 # big-endian architecture
13-
14-
# Restore old state in case Travis uses this cache for other jobs.
15-
rustup default nightly
12+
cargo miri test --target=mips64-unknown-linux-gnuabi64 # big-endian architecture

0 commit comments

Comments
 (0)