diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6d9a366..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8719bdf --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 diff --git a/README.md b/README.md index f3807e8..e387a0b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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) [![License](https://img.shields.io/github/license/raviqqe/bdwgc-alloc.svg?style=flat-square)](LICENSE) diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..2bf5ad0 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +stable