mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Move package builds to it's own workflow
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
6c32092618
commit
943a4ef242
6 changed files with 54 additions and 40 deletions
2
.github/workflows/build-deb-packages.yml
vendored
2
.github/workflows/build-deb-packages.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Deb
|
||||
name: DEB
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- linux
|
||||
|
|
2
.github/workflows/build-macos-packages.yml
vendored
2
.github/workflows/build-macos-packages.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
|||
jobs:
|
||||
|
||||
build-pkgs:
|
||||
name: Build
|
||||
name: macOS
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
44
.github/workflows/build-packages.yml
vendored
Normal file
44
.github/workflows/build-packages.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
name: Build Salt Packages
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
salt-version:
|
||||
type: string
|
||||
required: true
|
||||
description: The Salt version to set prior to building packages.
|
||||
github-hosted-runners:
|
||||
type: boolean
|
||||
required: true
|
||||
self-hosted-runners:
|
||||
type: boolean
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
if: ${{ inputs.self-hosted-runners }}
|
||||
uses: ./.github/workflows/build-rpm-packages.yml
|
||||
with:
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
if: ${{ inputs.self-hosted-runners }}
|
||||
uses: ./.github/workflows/build-deb-packages.yml
|
||||
with:
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
if: ${{ inputs.github-hosted-runners }}
|
||||
uses: ./.github/workflows/build-windows-packages.yml
|
||||
with:
|
||||
salt-version: "${{ inputs.salt-version }}"
|
||||
|
||||
build-macos-pkgs:
|
||||
name: Build macOS Packages
|
||||
if: ${{ inputs.github-hosted-runners }}
|
||||
uses: ./.github/workflows/build-macos-packages.yml
|
||||
with:
|
||||
salt-version: "${{ inputs.salt-version }}"
|
2
.github/workflows/build-rpm-packages.yml
vendored
2
.github/workflows/build-rpm-packages.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Build RPM
|
||||
name: RPM
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- linux
|
||||
|
|
2
.github/workflows/build-windows-packages.yml
vendored
2
.github/workflows/build-windows-packages.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
|||
jobs:
|
||||
|
||||
build-pkgs:
|
||||
name: Build
|
||||
name: Windows
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 2
|
||||
|
|
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
|
@ -587,45 +587,18 @@ jobs:
|
|||
if-no-files-found: error
|
||||
|
||||
|
||||
build-rpm-pkgs:
|
||||
name: Build RPM Packages
|
||||
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
|
||||
build-pkgs:
|
||||
name: Build Salt Packages
|
||||
needs:
|
||||
- prepare-ci
|
||||
- build-salt-linux
|
||||
uses: ./.github/workflows/build-rpm-packages.yml
|
||||
with:
|
||||
salt-version: "${{ needs.prepare-ci.outputs.salt-version }}"
|
||||
|
||||
build-deb-pkgs:
|
||||
name: Build DEB Packages
|
||||
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
|
||||
needs:
|
||||
- prepare-ci
|
||||
- build-salt-linux
|
||||
uses: ./.github/workflows/build-deb-packages.yml
|
||||
with:
|
||||
salt-version: "${{ needs.prepare-ci.outputs.salt-version }}"
|
||||
|
||||
build-windows-pkgs:
|
||||
name: Build Windows Packages
|
||||
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
|
||||
needs:
|
||||
- prepare-ci
|
||||
- build-salt-windows
|
||||
uses: ./.github/workflows/build-windows-packages.yml
|
||||
with:
|
||||
salt-version: "${{ needs.prepare-ci.outputs.salt-version }}"
|
||||
|
||||
build-macos-pkgs:
|
||||
name: Build macOS Packages
|
||||
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
|
||||
needs:
|
||||
- prepare-ci
|
||||
- build-salt-macos
|
||||
uses: ./.github/workflows/build-macos-packages.yml
|
||||
uses: ./.github/workflows/build-packages.yml
|
||||
with:
|
||||
salt-version: "${{ needs.prepare-ci.outputs.salt-version }}"
|
||||
self-hosted-runners: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
|
||||
github-hosted-runners: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['github-hosted-runners'] }}
|
||||
|
||||
|
||||
windows-2016:
|
||||
|
@ -1006,10 +979,7 @@ jobs:
|
|||
- pre-commit
|
||||
- docs
|
||||
- lint
|
||||
- build-macos-pkgs
|
||||
- build-windows-pkgs
|
||||
- build-rpm-pkgs
|
||||
- build-deb-pkgs
|
||||
- build-pkgs
|
||||
- almalinux-8
|
||||
- almalinux-9
|
||||
- amazonlinux-2
|
||||
|
|
Loading…
Add table
Reference in a new issue