Skip to content

Change enclave_server to RPC from Hyper #162

Change enclave_server to RPC from Hyper

Change enclave_server to RPC from Hyper #162

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
# rustfmt:
# runs-on: ubuntu-latest
# timeout-minutes: 5
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@nightly
# with:
# components: rustfmt
# - name: Check formatting
# run: cargo fmt --all --check
# build:
# runs-on: self-hosted
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
# with:
# shared-key: "build-cache"
# - name: cargo build without flags
# run: cargo build
# warnings:
# runs-on: self-hosted
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
# with:
# shared-key: "warnings-cache"
# - name: cargo check warnings
# run: RUSTFLAGS="-D warnings" cargo check
# test_enclave:
# runs-on: self-hosted
# timeout-minutes: 30
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
# with:
# shared-key: "client-cache"
# - name: Run tests for seismic-enclave
# run: |
# cd crates/enclave
# OUTPUT=$(cargo test -p seismic-enclave --no-run 2>&1)
# echo "$OUTPUT"
# mapfile -t binaries < <(echo "$OUTPUT" | grep -o '/[^ ]*seismic_enclave-[a-z0-9]*')
# for binary in "${binaries[@]}"; do
# echo "Running binary: $binary"
# sudo "$binary"
# done
test_enclave_server:
runs-on: self-hosted
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: "service-cache"
- name: Run tests for seismic-enclave-server
run: |
cd crates/enclave-server
OUTPUT=$(cargo test -p seismic-enclave-server --no-run 2>&1)
echo "$OUTPUT"
mapfile -t binaries < <(echo "$OUTPUT" | grep -o '/[^ ]*seismic_enclave_server-[a-z0-9]*')
for binary in "${binaries[@]}"; do
echo "Running binary: $binary"
sudo "$binary"
done