Merge pull request #3 from raviqqe/github-action

Add test workflow
This commit is contained in:
Yota Toyama
2020-11-27 21:06:17 -08:00
committed by GitHub
4 changed files with 32 additions and 16 deletions

View File

@@ -1,15 +0,0 @@
version: 2
jobs:
build:
docker:
- image: rustlang/rust:nightly
steps:
- run: apt -y update --fix-missing
- run: apt -y install cmake
- checkout
- run: git submodule update --init --recursive
- run: cargo build
- run: cd examples && ./test.sh
- run: |
git clean -dfx
cargo build --no-default-features --features cmake

30
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: test
on:
- push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
- uses: actions-rs/cargo@v1
with:
command: build
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: |
cd examples
./test.sh
- run: |
git clean -dfx
cargo build --no-default-features --features cmake

View File

@@ -1,6 +1,6 @@
# bdwgc-alloc # bdwgc-alloc
[![Circle CI](https://img.shields.io/circleci/project/github/raviqqe/bdwgc-alloc/master.svg?style=flat-square)](https://circleci.com/gh/raviqqe/bdwgc-alloc) [![GitHub Action](https://img.shields.io/github/workflow/status/raviqqe/bdwgc-alloc/test?style=flat-square)](https://github.com/raviqqe/bdwgc-alloc/actions)
[![Crate](https://img.shields.io/crates/v/bdwgc-alloc.svg?style=flat-square)](https://crates.io/crates/bdwgc-alloc) [![Crate](https://img.shields.io/crates/v/bdwgc-alloc.svg?style=flat-square)](https://crates.io/crates/bdwgc-alloc)
[![License](https://img.shields.io/github/license/raviqqe/bdwgc-alloc.svg?style=flat-square)](LICENSE) [![License](https://img.shields.io/github/license/raviqqe/bdwgc-alloc.svg?style=flat-square)](LICENSE)

1
rust-toolchain Normal file
View File

@@ -0,0 +1 @@
stable