Getting Started
Github Runner
Apply for a nitro enclave machine on AWS.
Configure the GitHub runner:
Settings → Actions → Runners → New self-hosted runner
Follow the instructions to configure the GitHub Runner
Download the enclave image file (e.g. ata-build-rust-latest.eif)
Download TEE Compile.
Github Action
Create tee_compile.yml
under the project's .github/workflow
directory.
name: TEE Compile
on:
release:
types: [published]
jobs:
build:
permissions: write-all
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
tee-compile build -output release.tar -nitro ~/ata-build-rust-latest.eif
- name: Release
uses: softprops/action-gh-release@v1
with:
files: release.tar
Create the build.json
file in the project.
{
"language": "rust",
"input": {
"cmd": "cargo build",
"vendor": "cargo fetch"
},
"output": {
"files": ["target/debug/binary"]
}
}
TEE Compile
TEE Compile is a compilation tool that runs within the Runner. It will be responsible for running the nitro enclave and performing the compilation, and generating the Attestation Report. It can be downloaded here.
Last updated
Was this helpful?