Move the enclaves into the same build directory #2257
Workflow file for this run
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: Check that repositories submoduling us will still build after this PR | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
android-bindings: | |
runs-on: [self-hosted, Linux, large] | |
container: mobilecoin/builder-install:v0.0.32 | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: mobilecoin | |
- name: Check that android-bindings still builds | |
uses: ./mobilecoin/.github/actions/check-dependent-rust-repo | |
with: | |
remoteRepo: mobilecoinofficial/android-bindings | |
submodulePath: mobilecoin | |
id: android-bindings | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
buildCmd: cargo build | |
full-service: | |
runs-on: [self-hosted, Linux, large] | |
container: mobilecoin/builder-install:v0.0.32 | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: mobilecoin | |
- name: Check that full-service still builds | |
uses: ./mobilecoin/.github/actions/check-dependent-rust-repo | |
with: | |
remoteRepo: mobilecoinofficial/full-service | |
submodulePath: mobilecoin | |
id: full-service | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
buildCmd: | | |
export CONSENSUS_ENCLAVE_CSS=$PWD/consensus-enclave.css | |
echo "CONSENSUS_ENCLAVE_CSS = $CONSENSUS_ENCLAVE_CSS" | |
if [ ! -f "$CONSENSUS_ENCLAVE_CSS" ]; then | |
CONSENSUS_SIGSTRUCT_URI=$(curl -s https://enclave-distribution.test.mobilecoin.com/production.json | jq -r .consensus.sigstruct) | |
curl -O https://enclave-distribution.test.mobilecoin.com/${CONSENSUS_SIGSTRUCT_URI} | |
fi | |
SGX_MODE=SW cargo test |