Skip to content

Switch from the long forsaken Travis CI build to using GitHub Actions #139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on: [push, pull_request]

env:
CARGO_TERM_COLOR: always

jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@nightly

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
cargo miri setup

- name: Test with Miri
run: cargo miri test --all-features

deploy_docs:
name: Deploy documentation
runs-on: ubuntu-latest
needs: build_test
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Build documentation
run: cargo doc --all-features

- name: Finalize documentation
run: |
echo "<meta http-equiv=\"refresh\" content=\"0; url=generic_array\">" > target/doc/index.html
touch target/doc/.nojekyll

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/doc
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Crates.io](https://img.shields.io/crates/v/generic-array.svg)](https://crates.io/crates/generic-array)
[![Build Status](https://travis-ci.org/fizyk20/generic-array.svg?branch=master)](https://travis-ci.org/fizyk20/generic-array)
[![Build Status](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml/badge.svg)](https://github.com/fizyk20/generic-array/actions/workflows/CI.yml)
# generic-array

This crate implements generic array types for Rust.
4 changes: 2 additions & 2 deletions src/impl_zeroize.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use {ArrayLength, GenericArray};
use crate::{ArrayLength, GenericArray};

use zeroize::Zeroize;

@@ -22,4 +22,4 @@ mod tests {
assert_eq!(array[0], 0);
assert_eq!(array[1], 0);
}
}
}