Skip to content

Commit

Permalink
fix: typo and circleci (#26)
Browse files Browse the repository at this point in the history
* fix: circleci

* fix ci

* fix ci

* fix

* fix ci

* fix pypi publish

* fix pypi publish
  • Loading branch information
zhongtianq authored Aug 6, 2024
1 parent 7003b88 commit 23be71b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
16 changes: 6 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
name: "build and test"
command: |
set -ex
./script/install_attestation_lib.sh -p sim
bash ./script/install_attestation_lib.sh -p sim
export PATH="/root/.cargo/bin:$PATH"
export PATH="/root/.local/bin:$PATH"
cargo build
Expand Down Expand Up @@ -149,10 +149,10 @@ jobs:
source /root/miniconda3/etc/profile.d/conda.sh
conda create -n build python=3.10.14 -y
conda activate build
python3 -m pip install twine auditwheel patchelf
pip install twine
cd capsule-manager-sdk/python
python3 setup.py bdist_wheel && twine check dist/*
python3 -m twine upload -r pypi -u __token__ -p ${PYPI_TWINE_TOKEN} dist/*.whl
twine upload -u __token__ -p ${PYPI_TWINE_TOKEN} dist/*
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
Expand All @@ -162,11 +162,7 @@ workflows:
not: << pipeline.parameters.GHA_Action >>
jobs:
- cm_ut
- cm_sdk_ut:
filters:
paths:
only:
- "capsule-manager-sdk/*"
- cm_sdk_ut
cm-docker-image-publish-workflow:
when:
and:
Expand All @@ -177,6 +173,6 @@ workflows:
- cm_docker_image_publish
cm-sdk-publish-workflow:
when:
- equal: ["cm_sdk_publish", << pipeline.parameters.GHA_Action >>]
equal: ["cm_sdk_publish", << pipeline.parameters.GHA_Action >>]
jobs:
- cm_sdk_publish
- cm_sdk_publish
3 changes: 0 additions & 3 deletions bin/grpc-as/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client_ca_pem = fs::read_to_string(&path).unwrap().as_bytes().to_vec();
client_pem_vec.append(&mut client_ca_pem);
}
"read client ca pem {:?}",
std::str::from_utf8(&client_pem_vec)?
);

let client_ca_cert = tonic::transport::Certificate::from_pem(client_pem_vec);
let tls_config = tonic::transport::ServerTlsConfig::new()
Expand Down

0 comments on commit 23be71b

Please sign in to comment.