Skip to content

Commit 5f4e7e4

Browse files
authored
Merge pull request #139 from alexschrod/master
Switch from the long forsaken Travis CI build to using GitHub Actions
2 parents 0e9caee + 18487f3 commit 5f4e7e4

File tree

3 files changed

+51
-19
lines changed

3 files changed

+51
-19
lines changed

.github/workflows/CI.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
build_test:
10+
name: Build and Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Install Rust
17+
uses: dtolnay/rust-toolchain@nightly
18+
19+
- name: Install Miri
20+
run: |
21+
rustup toolchain install nightly --component miri
22+
cargo miri setup
23+
24+
- name: Test with Miri
25+
run: cargo miri test --all-features
26+
27+
deploy_docs:
28+
name: Deploy documentation
29+
runs-on: ubuntu-latest
30+
needs: build_test
31+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v3
35+
36+
- name: Install Rust
37+
uses: dtolnay/rust-toolchain@stable
38+
39+
- name: Build documentation
40+
run: cargo doc --all-features
41+
42+
- name: Finalize documentation
43+
run: |
44+
echo "<meta http-equiv=\"refresh\" content=\"0; url=generic_array\">" > target/doc/index.html
45+
touch target/doc/.nojekyll
46+
47+
- name: Deploy
48+
uses: JamesIves/github-pages-deploy-action@v4
49+
with:
50+
folder: target/doc

.travis.yml

-18
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Crates.io](https://img.shields.io/crates/v/generic-array.svg)](https://crates.io/crates/generic-array)
2-
[![Build Status](https://travis-ci.org/fizyk20/generic-array.svg?branch=master)](https://travis-ci.org/fizyk20/generic-array)
2+
[![Build Status](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml/badge.svg)](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml)
33
# generic-array
44

55
This crate implements generic array types for Rust.

0 commit comments

Comments
 (0)