1name: try-runtime234on:5 6 pull_request:7 branches:8 - master9 types:10 - opened11 - reopened12 - synchronize 13 - ready_for_review1415 16 workflow_dispatch:171819env:20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}2122concurrency: 23 group: ${{ github.workflow }}-${{ github.ref }}24 cancel-in-progress: true252627jobs:28 try-runtime:29 30 runs-on: self-hosted-ci31 32 name: ${{ matrix.network }}3334 continue-on-error: true 3536 strategy:37 matrix:38 include:39 - network: opal40 features: try-runtime,opal-runtime41 fork_from_address: wss://eu-ws-opal.unique.network:44342 - network: quartz43 features: try-runtime,quartz-runtime44 fork_from_address: wss://eu-ws-quartz.unique.network:44345 - network: unique46 features: try-runtime,unique-runtime47 fork_from_address: wss://eu-ws.unique.network:4434849 steps:50 - name: Skip if pull request is in Draft51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 if: github.event.pull_request.draft == true66 run: exit 1676869 - name: Clean Workspace70 uses: AutoModality/action-clean@v1.1.07172 73 - uses: actions/checkout@v374 with:75 ref: ${{ github.head_ref }} 7677 - name: Read .env file78 uses: xom9ikk/dotenv@v1.0.27980 - name: Generate ENV related extend file for docker-compose81 uses: cuchi/jinja2-action@v1.2.082 with:83 template: .docker/docker-compose.try-runtime.j284 output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml85 variables: |86 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}87 FEATURE=${{ matrix.features }}88 FORK_FROM=${{ matrix.fork_from_address }}8990 - name: Show build configuration91 run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml9293 - name: Build the stack94 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300 --remove-orphans9596 - name: Stop running containers97 if: always() 98 run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down