Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianUekermann committed Feb 10, 2024
1 parent 5d31460 commit 47bbe01
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Cargo Build & Test

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

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ["stable", "beta", "nightly"]
crypto: ["ring", "aws-lc-rs", "ring,aws-lc-rs", ""]
tokio: ["tokio", "tokio,axum", ""]
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose --features ${{ matrix.crypto }},${{ matrix.tokio }}
- run: cargo test --verbose --features ${{ matrix.crypto }},${{ matrix.tokio }}

0 comments on commit 47bbe01

Please sign in to comment.