Skip to content

Commit

Permalink
Merge pull request #3 from capsule-corp-ternoa/zorvan-patch-1
Browse files Browse the repository at this point in the history
Update sign-and-release.yml
  • Loading branch information
peshwar9 authored Sep 4, 2023
2 parents 9f4b2b5 + 8d1739d commit 3056661
Showing 1 changed file with 4 additions and 37 deletions.
41 changes: 4 additions & 37 deletions .github/workflows/sign-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,23 @@ jobs:
sudo apt install -y clang llvm pkg-config nettle-dev
- name: Run tests
run: echo "bypass tests temporarily" #cargo test --no-default-features --features alpha-net --release

# - name: Install Cosign
# uses: sigstore/cosign-installer@main

# - name: Check install!
# run: cosign version

run: cargo test --no-default-features --features alpha-net --release

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features alpha-net,release-build --release

# - name: Sign the binary
# env:
# PRIVATE_KEY: ${{secrets.COSIGN_KEY}}
# PASSWORD: ${{secrets.COSIGN_PASSWORD}}
# run: echo "y" | COSIGN_PASSWORD="$PASSWORD" cosign sign-blob --key env://PRIVATE_KEY target/release/sgx_server --output-file target/release/sgx_server.sig


- name: Create the Deployment ZIP
run: |
mkdir -p deployment/ternoa_enclave/gramine/bin/
cp target/release/sgx_server deployment/ternoa_enclave/gramine/bin/
# cp target/release/sgx_server.sig deployment/ternoa_enclave/gramine/bin/
cd deployment
zip ternoa_enclave_deployment.zip ternoa_enclave/gramine/bin/*
cd ..
echo -n ${{env.MRENCLAVE}} >> MRENCLAVE

- name: Upload ZIP to release
uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -86,26 +73,6 @@ jobs:
overwrite: true
body: "Ternoa SGX Package for alphanet chain"

# - name: Upload binary to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: target/release/sgx_server
# asset_name: sgx_server_alpha
# tag: ${{ github.ref }}
# overwrite: true
# body: "Ternoa SGX Server for alphanet chain"

# - name: Upload binary signature to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: target/release/sgx_server.sig
# asset_name: sgx_server_alpha-net.sig
# tag: ${{ github.ref }}
# overwrite: true
# body: "Ternoa SGX Server Signature for alpha-net chain"

- name: Upload MRENCLAVE
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 3056661

Please sign in to comment.