Bump openssl from 0.10.61 to 0.10.66 in /signer #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ternoa-SGX-Enclave | |
on: | |
push: | |
tags: [v0.4*] | |
pull_request: | |
branches: [ "master" ] | |
types: [opened, edited] | |
workflow_dispatch: | |
env: | |
TAG: "v0.4.5-mainnet" | |
MRENCLAVE: "9e26329e0d451e02e3c7622025921397ead737ec0d09d1f31fe35c7486a6cfb0" | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
target: x86_64-unknown-linux-musl | |
- name: Configure sccache env var | |
run: | | |
echo "RUSTC_WRAPPER=sccache" >> "$GITHUB_ENV" | |
echo "SCCACHE_GHA_ENABLED=true" >> "$GITHUB_ENV" | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
with: | |
version: "v0.5.2" | |
- name: Install Nettle | |
run: | | |
# sudo apt update | |
sudo apt install -y clang llvm pkg-config nettle-dev | |
- name: Run tests | |
run: cargo test --no-default-features --features mainnet --release | |
- name: Build | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --no-default-features --features mainnet --release | |
- name: Create the Deployment ZIP | |
run: | | |
mkdir -p deployment/ternoa_enclave/gramine/bin/ | |
cp target/release/sgx_server 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: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: deployment/ternoa_enclave_deployment.zip | |
asset_name: ternoa_enclave_mainnet.zip | |
tag: ${{ env.TAG }} | |
overwrite: true | |
body: "Ternoa SGX Package for mainnet" | |
- name: Upload MRENCLAVE | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: MRENCLAVE | |
asset_name: MRENCLAVE | |
tag: ${{ env.TAG }} | |
overwrite: true | |
body: "Ternoa SGX Server MRENCLAVE for mainnet" |