1on:2 workflow_call:3456jobs:7 try-runtime:8 9 runs-on: self-hosted-ci10 11 name: ${{ matrix.network }}1213 continue-on-error: true 1415 strategy:16 matrix:17 include:18 - network: opal19 features: opal-runtime20 replica_from_address: wss://eu-ws-opal.unique.network:44321 - network: quartz22 features: quartz-runtime23 replica_from_address: wss://eu-ws-quartz.unique.network:44324 - network: unique25 features: unique-runtime26 replica_from_address: wss://eu-ws.unique.network:4432728 steps:2930 - name: Clean Workspace31 uses: AutoModality/action-clean@v1.1.03233 34 - uses: actions/checkout@v335 with:36 ref: ${{ github.head_ref }} 3738 - name: Read .env file39 uses: xom9ikk/dotenv@v1.0.24041 - name: Generate ENV related extend file for docker-compose42 uses: cuchi/jinja2-action@v1.2.043 with:44 template: .docker/docker-compose.try-runtime.j245 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml46 variables: |47 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}48 FEATURE=${{ matrix.features }}49 REPLICA_FROM=${{ matrix.replica_from_address }}5051 - name: Show build configuration52 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5354 - name: Build the stack55 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime56 57 - name: Collect Docker Logs58 if: success() || failure()59 uses: jwalton/gh-docker-logs@v2.2.060 with:61 dest: './try-runtime-logs.${{ matrix.network }}'62 images: 'try-runtime' 6364 - name: Show docker logs65 run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6667 - name: Stop running containers68 if: always() 69 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down