12345on:6 workflow_call:789jobs:10 try-runtime:11 12 runs-on: self-hosted-ci13 14 name: ${{ matrix.network }}1516 continue-on-error: true 1718 strategy:19 matrix:20 include:21 - network: opal22 features: opal-runtime23 replica_from_address: wss://eu-ws-opal.unique.network:44324 - network: quartz25 features: quartz-runtime26 replica_from_address: wss://eu-ws-quartz.unique.network:44327 - network: unique28 features: unique-runtime29 replica_from_address: wss://eu-ws.unique.network:4433031 steps:3233 - name: Clean Workspace34 uses: AutoModality/action-clean@v1.1.03536 37 - uses: actions/checkout@v338 with:39 ref: ${{ github.head_ref }} 4041 - name: Read .env file42 uses: xom9ikk/dotenv@v1.0.24344 - name: Generate ENV related extend file for docker-compose45 uses: cuchi/jinja2-action@v1.2.046 with:47 template: .docker/docker-compose.try-runtime.j248 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml49 variables: |50 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}51 FEATURE=${{ matrix.features }}52 REPLICA_FROM=${{ matrix.replica_from_address }}5354 - name: Show build configuration55 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5657 - name: Build the stack58 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-runtime59 60 - name: Collect Docker Logs61 if: success() || failure()62 uses: jwalton/gh-docker-logs@v2.2.063 with:64 dest: './try-runtime-logs.${{ matrix.network }}'65 images: 'try-runtime' 6667 - name: Show docker logs68 run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6970 - name: Stop running containers71 if: always() 72 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down73 74 - name: Remove builder cache75 if: always() 76 run: |77 docker builder prune -f -a78 docker system prune -f79 docker image prune -f -a