1on:2 workflow_call:345jobs:6 try-runtime:7 8 runs-on: self-hosted-ci9 10 name: ${{ matrix.network }}1112 continue-on-error: true 1314 strategy:15 matrix:16 include:17 - network: opal18 features: opal-runtime19 replica_from_address: wss://eu-ws-opal.unique.network:44320 - network: quartz21 features: quartz-runtime22 replica_from_address: wss://eu-ws-quartz.unique.network:44323 - network: unique24 features: unique-runtime25 replica_from_address: wss://eu-ws.unique.network:4432627 steps:2829 - name: Clean Workspace30 uses: AutoModality/action-clean@v1.1.03132 33 - uses: actions/checkout@v334 with:35 ref: ${{ github.head_ref }} 3637 - name: Read .env file38 uses: xom9ikk/dotenv@v23940 - name: Generate ENV related extend file for docker-compose41 uses: cuchi/jinja2-action@v1.2.042 with:43 template: .docker/docker-compose.try-runtime.j244 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml45 variables: |46 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}47 FEATURE=${{ matrix.features }}48 REPLICA_FROM=${{ matrix.replica_from_address }}4950 - name: Show build configuration51 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5253 - name: Build the stack54 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-runtime55 56 - name: Collect Docker Logs57 if: success() || failure()58 uses: jwalton/gh-docker-logs@v2.2.059 with:60 dest: './try-runtime-logs.${{ matrix.network }}'61 images: 'try-runtime' 6263 - name: Show docker logs64 run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6566 - name: Stop running containers67 if: always() 68 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down