Skip to content

Commit

Permalink
CI: Switch to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Nov 24, 2021
1 parent 3a6ac9a commit 195cf57
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 120 deletions.
114 changes: 0 additions & 114 deletions .circleci/config.yml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '30 3 * * 2'

name: CI

jobs:

test:
name: run tests
strategy:
matrix:
rust: [1.51, stable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build with default features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets
- name: Build with all features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --all-features
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features

fmt:
name: run rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.51
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

clippy:
name: run clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

audit:
name: run cargo audit
runs-on: ubuntu-latest
container: dbrgn/cargo-audit:latest
steps:
- uses: actions/checkout@v2
- run: cargo audit
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rust SDK for Threema Gateway

[![CircleCI][circle-ci-badge]][circle-ci]
![GitHub CI][github-actions-badge]][github-actions]
[![Crates.io Version][crates-io-badge]][crates-io]
[![Crates.io Downloads][crates-io-download-badge]][crates-io-download]

Expand Down Expand Up @@ -123,8 +123,8 @@ for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.

<!-- Badges -->
[circle-ci]: https://circleci.com/gh/dbrgn/threema-gateway-rs/tree/master
[circle-ci-badge]: https://circleci.com/gh/dbrgn/threema-gateway-rs/tree/master.svg?style=shield
[github-actions]: https://github.com/dbrgn/threema-gateway-rs/actions?query=branch%3Amaster
[github-actions-badge]: https://github.com/dbrgn/threema-gateway-rs/workflows/CI/badge.svg
[crates-io]: https://crates.io/crates/threema-gateway
[crates-io-badge]: https://img.shields.io/crates/v/threema-gateway.svg?maxAge=3600
[crates-io-download]: https://crates.io/crates/threema-gateway
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//! # Threema Gateway SDK for Rust
//!
//! [![CircleCI](https://circleci.com/gh/dbrgn/threema-gateway-rs/tree/master.svg?style=shield)](https://circleci.com/gh/dbrgn/threema-gateway-rs/tree/master)
//! [![Crates.io](https://img.shields.io/crates/v/threema-gateway.svg?maxAge=3600)](https://crates.io/crates/threema-gateway)
//!
//! This library makes it easy to use the [Threema
//! Gateway](https://gateway.threema.ch/) from Rust programs.
//!
Expand Down

0 comments on commit 195cf57

Please sign in to comment.