Skip to content

Commit

Permalink
Add CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Mar 27, 2024
1 parent e9e51de commit 0738b80
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Rust CI

on:
push:
pull_request:

jobs:
build:
name: Test and Benchmark
runs-on: ubuntu-latest

strategy:
matrix:
rust-version: [stable, nightly]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust - Stable
if: matrix.rust-version == 'stable'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: Set up Rust - Nightly
if: matrix.rust-version == 'nightly'
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal

- name: Test
if: matrix.rust-version == 'stable'
run: cargo test

- name: Bench
if: matrix.rust-version == 'nightly'
run: cargo bench

0 comments on commit 0738b80

Please sign in to comment.