Skip to content

Merge pull request #2167 from Mshnwq/main #311

Merge pull request #2167 from Mshnwq/main

Merge pull request #2167 from Mshnwq/main #311

Workflow file for this run

name: "Release"
on:
push:
branches:
- main
tags:
- v*
workflow_dispatch:
inputs:
ref:
description: 'Git ref (tag or branch) to release'
required: true
default: 'main'
type: string
concurrency:
group: "release-${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || github.ref_name }}"
cancel-in-progress: false
jobs:
# Per-system job chains to avoid cross-system waiting
build-aarch64-linux:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}
system: "aarch64-linux"
test-aarch64-linux:
needs: build-aarch64-linux
uses: ./.github/workflows/test.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "aarch64-linux"
examples-aarch64-linux:
needs: test-aarch64-linux
if: always()
uses: ./.github/workflows/examples.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "aarch64-linux"
build-x86_64-linux:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}
system: "x86_64-linux"
test-x86_64-linux:
needs: build-x86_64-linux
uses: ./.github/workflows/test.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "x86_64-linux"
examples-x86_64-linux:
needs: test-x86_64-linux
if: always()
uses: ./.github/workflows/examples.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "x86_64-linux"
build-aarch64-darwin:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}
system: "aarch64-darwin"
test-aarch64-darwin:
needs: build-aarch64-darwin
uses: ./.github/workflows/test.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "aarch64-darwin"
examples-aarch64-darwin:
needs: test-aarch64-darwin
if: always()
uses: ./.github/workflows/examples.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "aarch64-darwin"
build-x86_64-darwin:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}
system: "x86_64-darwin"
test-x86_64-darwin:
needs: build-x86_64-darwin
uses: ./.github/workflows/test.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "x86_64-darwin"
examples-x86_64-darwin:
needs: test-x86_64-darwin
if: always()
uses: ./.github/workflows/examples.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || ''}}
system: "x86_64-darwin"
pin:
needs: [build-aarch64-linux, build-x86_64-linux, build-aarch64-darwin, build-x86_64-darwin]
if: startsWith(github.ref, 'refs/tags/v')
uses: ./.github/workflows/pin.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}
containers:
needs: [build-aarch64-linux, build-x86_64-linux, build-aarch64-darwin, build-x86_64-darwin]
uses: ./.github/workflows/containers.yml
secrets: inherit
with:
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || '' }}