Skip to content

Commit

Permalink
Merge pull request #2034 from oasisprotocol/kostko/feature/tdx
Browse files Browse the repository at this point in the history
Add support for TDX
  • Loading branch information
kostko authored Oct 21, 2024
2 parents aa03472 + fc6089c commit c559e5e
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 273 deletions.
12 changes: 11 additions & 1 deletion .github/actions/lint-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@ inputs:
token:
description: GitHub secret token used by clippy-check action
required: true
features:
description: Features to enable, separated by comma
required: false
runs:
using: composite
steps:
- name: Clippy check
shell: bash
env:
MANIFEST_PATH: ${{ inputs.manifest_path }}
FEATURES: ${{ inputs.features }}
run: |
if [[ -z "$FEATURES" ]]; then
FEATURES_ARG=("--all-features")
else
FEATURES_ARG=("--features" "$FEATURES")
fi
cargo clippy \
--all-features \
${FEATURES_ARG[@]} \
--locked \
--manifest-path "$MANIFEST_PATH" \
-- \
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
- name: Lint Rust code
uses: ./.github/actions/lint-rust
with:
features: debug-logging,debug-mock-sgx,test,unsafe-allow-debug
token: ${{ secrets.GITHUB_TOKEN }}

- name: Lint Rust code (TDX)
uses: ./.github/actions/lint-rust
with:
features: tdx
token: ${{ secrets.GITHUB_TOKEN }}

- name: Lint Hello contract code
Expand Down
Loading

0 comments on commit c559e5e

Please sign in to comment.