Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add measurements ci workflow with proto compile job #81

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-measurements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI Measurements
ShaBloze marked this conversation as resolved.
Show resolved Hide resolved

on:
workflow_call: {}

jobs:
changes:
uses: ./.github/workflows/detect-changes.yml

compile_proto_descriptors:
needs: changes
if: ${{ needs.changes.outputs.measurements_contracts == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Compile protobuf file descriptors
shell: bash
run: |
pushd './source/measurements/contracts'
rm -rf ./proto ./assets
mkdir ./proto ./assets
cp -r **.proto ./proto
pushd ./proto
protoc --include_imports --descriptor_set_out=../assets/persist_submitted_transaction.binpb PersistSubmittedTransaction.proto
protoc --include_imports --descriptor_set_out=../assets/submitted_transaction_persisted.binpb SubmittedTransactionPersisted.proto
popd
5 changes: 5 additions & 0 deletions .github/workflows/ci-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
with:
image_tag: ${{ needs.ci_docker.outputs.image_tag }}

ci_measurements:
needs: changes
if: ${{ needs.changes.outputs.measurements == 'true' }}
uses: ./.github/workflows/ci-measurements.yml

#
# Branch policy status check
#
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/detect-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
- '.github/workflows/ci-capacity-settlement.yml'
- '.github/workflows/cd.yml'
- '.devcontainer/**'
measurements:
- 'source/measurements/**'
ShaBloze marked this conversation as resolved.
Show resolved Hide resolved
measurements_contracts:
- 'source/measurements/src/contracts/**'
docker:
- .docker/**

Expand Down
Loading