-
Notifications
You must be signed in to change notification settings - Fork 320
Decoupled crypto backends (the rest) #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 47 commits
33d2c21
b116e44
e2a203f
5bb1d75
d80832c
69cbfa3
a66864f
485fb9f
490564c
a672130
73ea869
a41c817
6f9b553
e061882
e5ba5a1
502faa4
a701547
6a41ba7
66d54be
0886064
337f9ed
a0431d8
4225e1f
78e84c1
2a50e0d
19ee8f3
765c04c
e1305ef
e37ebee
25f84c3
4b7fdfb
1f49f43
6062c96
492760f
eed1c1c
8f60acf
660d89e
9adb7da
01eca4c
903ecff
b8d2906
d6151bd
76b2fe3
09e8d42
f35c3e8
755d868
eca3603
51e8804
0301db5
35ba6ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,83 +1,86 @@ | ||
| name: ci | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| style: | ||
| name: Format | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: rustfmt | ||
| - name: Check format | ||
| run: cargo fmt --check | ||
| style: | ||
| name: Format | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: rustfmt | ||
| - name: Check format | ||
| run: cargo fmt --check | ||
|
|
||
| clippy: | ||
| name: Clippy | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: clippy | ||
| - run: cargo clippy --all-targets --all-features -- -D warnings | ||
| clippy: | ||
| name: Clippy | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| backend: [ aws_lc_rs, rust_crypto ] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| components: clippy | ||
| - run: cargo clippy --all-targets --features ${{ matrix.backend }} -- -D warnings | ||
|
|
||
| tests: | ||
| name: Tests | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| build: [pinned, stable, nightly] | ||
| include: | ||
| - build: pinned | ||
| os: ubuntu-20.04 | ||
| rust: 1.73.0 | ||
| - build: stable | ||
| os: ubuntu-20.04 | ||
| rust: stable | ||
| - build: nightly | ||
| os: ubuntu-20.04 | ||
| rust: nightly | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ matrix.rust }} | ||
| tests: | ||
| name: Tests | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| build: [ pinned, stable, nightly ] | ||
| backend: [ aws_lc_rs, rust_crypto ] | ||
| include: | ||
| - build: pinned | ||
| os: ubuntu-20.04 | ||
| rust: 1.73.0 | ||
| - build: stable | ||
| os: ubuntu-20.04 | ||
| rust: stable | ||
| - build: nightly | ||
| os: ubuntu-20.04 | ||
| rust: nightly | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: ${{ matrix.rust }} | ||
|
|
||
| - name: Build System Info | ||
| run: rustc --version | ||
| - name: Build System Info | ||
| run: rustc --version | ||
|
|
||
| - name: Run tests default features | ||
| run: cargo test | ||
| - name: Run tests default features | ||
| run: cargo test --features ${{ matrix.backend }} | ||
|
|
||
| - name: Run tests no features | ||
| run: cargo test --no-default-features | ||
| - name: Run tests no features | ||
| run: cargo test --no-default-features --features ${{ matrix.backend }} | ||
|
|
||
| wasm: | ||
| name: Run tests in wasm | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
| wasm: | ||
| name: Run tests in wasm | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@stable | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| - uses: actions/setup-node@v4 | ||
|
|
||
| - name: Install wasm-pack | ||
| run: cargo install wasm-pack | ||
| - name: Install wasm-pack | ||
| run: cargo install wasm-pack | ||
|
|
||
| - name: Run tests default features | ||
| run: wasm-pack test --node | ||
|
|
||
| - name: Run tests no features | ||
| run: wasm-pack test --node --no-default-features | ||
| - name: Run tests default features | ||
| run: wasm-pack test --node --features rust_crypto,getrandom/js | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a related issue: #431 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this PR might actually help with that, given |
||
|
|
||
| - name: Run tests no features | ||
| run: wasm-pack test --node --no-default-features --features rust_crypto,getrandom/js | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| # Changelog | ||
|
|
||
| ## 10.0.0 (unreleased) | ||
|
|
||
| ## 9.3.1 (2024-02-06) | ||
|
|
||
| - Update base64 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe ubuntu-20.04 is no longer supported by GHA. Need tp upgrade to 22.04 or 24.04.