Skip to content

Commit

Permalink
add rust workflow and update c# workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KJHJason committed Jun 27, 2024
1 parent 0baf5ef commit e8d3a7a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Test C# Implementation in .NET

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

jobs:
build-and-test:
Expand All @@ -19,7 +19,7 @@ jobs:
working-directory: ./csharp/src

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/rust_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test Rust Implementation

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

jobs:
build-and-test:

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./rust/src

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Test default/rust_crypto feature
run: cargo test -- --show-output

- name: Test ring feature
run: cargo test --features ring --no-default-features -- --show-output
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT"
edition = "2021"

[features]
default = []
default = ["rust_crypto"]
rust_crypto = ["sha1", "sha2", "hkdf", "hmac"]
ring = ["dep:ring"]

Expand Down

0 comments on commit e8d3a7a

Please sign in to comment.