Create generate.yml

This commit is contained in:
Igor Pečovnik
2023-02-20 18:07:25 +01:00
committed by GitHub
parent 08f72905db
commit 7aff4dde88

105
.github/workflows/generate.yml vendored Normal file
View File

@@ -0,0 +1,105 @@
name: Rootfs
on:
workflow_dispatch:
workflow_call:
schedule:
- cron: '0 3 * * *' # Scheduled runs every day at 3am UTC
jobs:
Cancel:
name: "Cancel currently active"
if: ${{ github.repository_owner == 'Armbian' }}
runs-on: qemu
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.11.0
if: ${{ github.event.schedule == '' }}
with:
all_but_latest: true
access_token: ${{ secrets.GITHUB_TOKEN }}
Minimal:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'yes'
desktop: 'no'
variant: ''
Server:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'no'
variant: ''
GUI1:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'yes'
variant: 'x'
GUI2:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'yes'
variant: '3dsupport'
GUI3:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'yes'
variant: '3dsupport browsers'
GUI4:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'yes'
variant: '3dsupport browsers chat desktop_tools editors email internet multimedia office programming remote_desktop'
GUI5:
needs: Cancel
if: ${{ success() && github.repository_owner == 'Armbian' }}
uses: ./.github/workflows/include.yml
with:
minimal: 'no'
desktop: 'yes'
variant: 'browsers chat desktop_tools editors email internet multimedia office programming remote_desktop'