ci(copr): refactor copr-ci (#4043)
This commit is contained in:
19
.github/workflows/ci-copr.yml
vendored
19
.github/workflows/ci-copr.yml
vendored
@@ -1,23 +1,24 @@
|
|||||||
---
|
---
|
||||||
name: CI Copr
|
name: CI-Copr
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- prereleased
|
- prereleased
|
||||||
- released
|
- released
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
COPR_BETA_WEBHOOK_TOKEN:
|
||||||
|
required: false
|
||||||
|
COPR_STABLE_WEBHOOK_TOKEN:
|
||||||
|
required: false
|
||||||
|
COPR_CLI_CONFIG:
|
||||||
|
required: false
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "${{ github.workflow }}-${{ github.ref }}"
|
group: "_${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
@@ -67,7 +67,7 @@ jobs:
|
|||||||
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build_homebrew:
|
build-homebrew:
|
||||||
name: Homebrew
|
name: Homebrew
|
||||||
needs: release-setup
|
needs: release-setup
|
||||||
uses: ./.github/workflows/ci-homebrew.yml
|
uses: ./.github/workflows/ci-homebrew.yml
|
||||||
@@ -81,15 +81,7 @@ jobs:
|
|||||||
GIT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
GIT_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
|
||||||
GIT_USERNAME: ${{ secrets.GH_BOT_NAME }}
|
GIT_USERNAME: ${{ secrets.GH_BOT_NAME }}
|
||||||
|
|
||||||
build_linux_flatpak:
|
build-linux:
|
||||||
name: Linux Flatpak
|
|
||||||
needs: release-setup
|
|
||||||
uses: ./.github/workflows/ci-flatpak.yml
|
|
||||||
with:
|
|
||||||
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
|
||||||
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
|
||||||
|
|
||||||
build_linux:
|
|
||||||
name: Linux
|
name: Linux
|
||||||
needs: release-setup
|
needs: release-setup
|
||||||
uses: ./.github/workflows/ci-linux.yml
|
uses: ./.github/workflows/ci-linux.yml
|
||||||
@@ -97,7 +89,24 @@ jobs:
|
|||||||
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
||||||
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
||||||
|
|
||||||
build_windows:
|
build-linux-copr:
|
||||||
|
name: Linux Copr
|
||||||
|
needs: release-setup
|
||||||
|
uses: ./.github/workflows/ci-copr.yml
|
||||||
|
secrets:
|
||||||
|
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
||||||
|
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
||||||
|
COPR_CLI_CONFIG: ${{ secrets.COPR_CLI_CONFIG }}
|
||||||
|
|
||||||
|
build-linux-flatpak:
|
||||||
|
name: Linux Flatpak
|
||||||
|
needs: release-setup
|
||||||
|
uses: ./.github/workflows/ci-flatpak.yml
|
||||||
|
with:
|
||||||
|
release_commit: ${{ needs.release-setup.outputs.release_commit }}
|
||||||
|
release_tag: ${{ needs.release-setup.outputs.release_tag }}
|
||||||
|
|
||||||
|
build-windows:
|
||||||
name: Windows
|
name: Windows
|
||||||
needs: release-setup
|
needs: release-setup
|
||||||
uses: ./.github/workflows/ci-windows.yml
|
uses: ./.github/workflows/ci-windows.yml
|
||||||
@@ -114,10 +123,10 @@ jobs:
|
|||||||
!cancelled() &&
|
!cancelled() &&
|
||||||
startsWith(github.repository, 'LizardByte/')
|
startsWith(github.repository, 'LizardByte/')
|
||||||
needs:
|
needs:
|
||||||
- build_linux
|
- build-linux
|
||||||
- build_linux_flatpak
|
- build-linux-flatpak
|
||||||
- build_homebrew
|
- build-homebrew
|
||||||
- build_windows
|
- build-windows
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -174,10 +183,11 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- release-setup
|
- release-setup
|
||||||
- build-docker
|
- build-docker
|
||||||
- build_linux
|
- build-linux
|
||||||
- build_linux_flatpak
|
- build-linux-copr
|
||||||
- build_homebrew
|
- build-linux-flatpak
|
||||||
- build_windows
|
- build-homebrew
|
||||||
|
- build-windows
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download build artifacts
|
- name: Download build artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user