Skip to content

Commit

Permalink
Merge branch 'main' into nix_libcrypto_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch authored Apr 25, 2024
2 parents 65bf408 + f711736 commit a9e2d7a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 36 deletions.
65 changes: 29 additions & 36 deletions .github/workflows/ci_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand Down Expand Up @@ -72,11 +72,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- name: generate bindings
run: ${{env.ROOT_PATH}}/generate.sh --skip-tests
Expand All @@ -90,11 +90,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- name: generate bindings
run: ${{env.ROOT_PATH}}/generate.sh --skip-tests
Expand All @@ -108,11 +108,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand Down Expand Up @@ -157,13 +157,11 @@ jobs:
with:
submodules: true

- uses: actions-rs/toolchain@v1.0.7
- name: Install Rust toolchain
id: toolchain
with:
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
profile: minimal
override: true
components: rustfmt
run: |
rustup toolchain install ${{ env.RUST_NIGHTLY_TOOLCHAIN }} --profile minimal --component rustfmt
rustup override set ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
- uses: camshaft/rust-cache@v1

Expand All @@ -173,10 +171,8 @@ jobs:
run: ./${{env.ROOT_PATH}}/generate.sh

- name: Run cargo fmt
uses: actions-rs/[email protected]
with:
command: fmt
args: --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all -- --check
run: |
cargo fmt --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all -- --check
clippy:
runs-on: ubuntu-latest
Expand All @@ -185,13 +181,11 @@ jobs:
with:
submodules: true

- uses: actions-rs/toolchain@v1.0.7
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
profile: minimal
override: true
components: clippy
run: |
rustup toolchain install stable --profile minimal --component clippy
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand All @@ -206,10 +200,9 @@ jobs:

# TODO translate json reports to in-action warnings
- name: Run cargo clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all-targets -- -D warnings
run: |
cargo clippy --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all-targets -- -D warnings
msrv:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions bindings/rust/s2n-tls-sys/templates/Cargo.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ cc = { version = "1.0", features = ["parallel"] }
jobserver = "=0.1.26" # newer versions require rust 1.66, see https://github.com/aws/s2n-tls/issues/4241
home = "=0.5.5" # newer versions require rust 1.70, see https://github.com/aws/s2n-tls/issues/4395
regex = "=1.9.6" # newer versions require rust 1.65, see https://github.com/aws/s2n-tls/issues/4242
zeroize = "=1.7.0" # newer versions require rust 1.72, see https://github.com/aws/s2n-tls/issues/4518

0 comments on commit a9e2d7a

Please sign in to comment.