Merge pull request #2167 from Mshnwq/main #311
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 || '' }} |