Skip to content

Commit

Permalink
Replace Travis CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 15, 2022
1 parent 79bafd3 commit 76eb785
Show file tree
Hide file tree
Showing 7 changed files with 757 additions and 61 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous integration
on:
push:
branches:
- staging
- trying

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: 1.36.0 # MSRV
- rust: stable
- rust: beta
- rust: nightly
- rust: nightly
target: i686-unknown-linux-gnu
- rust: stable
target: mips64-unknown-linux-gnuabi64

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Tests
env:
TARGET: ${{ matrix.target }}
run: ./ci/script.sh
25 changes: 25 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pull Request
on:
pull_request:

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- rust: stable

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Tests
run: ./ci/script.sh
58 changes: 0 additions & 58 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# primal

[![Build Status](https://travis-ci.org/huonw/primal.png)](https://travis-ci.org/huonw/primal) [![codecov](https://codecov.io/gh/huonw/primal/branch/master/graph/badge.svg)](https://codecov.io/gh/huonw/primal) [![crates.io](https://img.shields.io/crates/v/primal.svg)](https://crates.io/crates/primal)
[![crates.io](https://img.shields.io/crates/v/primal.svg)](https://crates.io/crates/primal)
[![documentation](https://docs.rs/primal/badge.svg)](https://docs.rs/primal)
![minimum rustc 1.36](https://img.shields.io/badge/rustc-1.36+-red.svg)

`primal` puts raw power into prime numbers.

Expand Down
7 changes: 6 additions & 1 deletion bors.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
status = [
"continuous-integration/travis-ci/push"
"tests (1.36.0)",
"tests (stable)",
"tests (beta)",
"tests (nightly)",
"tests (nightly, i686-unknown-linux-gnu)",
"tests (stable, mips64-unknown-linux-gnuabi64)",
]
Loading

0 comments on commit 76eb785

Please sign in to comment.