Skip to content

Commit

Permalink
Switch from Azure Pipelines to Github Actions. (metrics-rs#93)
Browse files Browse the repository at this point in the history
* Switch from Azure Pipelines to Github Actions.

* Move the CI config to the right folder.
  • Loading branch information
tobz authored Sep 27, 2020
1 parent 0c91dd9 commit 1ed5f7f
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 105 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Rust

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Check Formatting
run: cargo fmt --all -- --check
test:
name: Test ${{ matrix.rust_version }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust_version: ['1.36.0', 'stable', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Install Rust ${{ matrix.rust_version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true
- name: Run Tests
run: cargo test
bench:
name: Bench ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: 'stable'
override: true
- name: Run Benchmarks
run: cargo bench
27 changes: 0 additions & 27 deletions ci/azure-install-rust.yml

This file was deleted.

16 changes: 0 additions & 16 deletions ci/azure-rustfmt.yml

This file was deleted.

20 changes: 0 additions & 20 deletions ci/azure-test-minimum.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions ci/azure-test-nightly.yml

This file was deleted.

20 changes: 0 additions & 20 deletions ci/azure-test-stable.yml

This file was deleted.

0 comments on commit 1ed5f7f

Please sign in to comment.