2023-07-09 19:57:16 +07:00
|
|
|
# _
|
|
|
|
# __| | __ _ ___
|
|
|
|
# / _` |/ _` |/ _ \
|
|
|
|
# | (_| | (_| | __/
|
|
|
|
# \__,_|\__,_|\___|
|
|
|
|
#
|
|
|
|
# Copyright (C) 2023 @daeuniverse <https://github.com/daeuniverse>
|
|
|
|
#
|
|
|
|
# This is a open-source software, liscensed under the AGPL-3.0 License.
|
|
|
|
# See /License for more information.
|
|
|
|
|
2023-07-11 22:27:30 +07:00
|
|
|
name: Build (Main)
|
2023-01-28 17:32:42 +07:00
|
|
|
|
|
|
|
on:
|
2023-01-31 20:49:27 +07:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- "**/*.go"
|
|
|
|
- "**/*.c"
|
|
|
|
- "**/*.h"
|
|
|
|
- "go.mod"
|
|
|
|
- "go.sum"
|
2023-05-20 23:41:44 +07:00
|
|
|
- ".github/workflows/build.yml"
|
2023-07-13 20:01:31 +07:00
|
|
|
- ".github/workflows/seed-build.yml"
|
2023-06-09 21:10:21 +07:00
|
|
|
- "Makefile"
|
2023-01-28 17:32:42 +07:00
|
|
|
|
|
|
|
jobs:
|
2023-07-09 19:57:16 +07:00
|
|
|
pre-actions:
|
|
|
|
uses: daeuniverse/ci-seed-jobs/.github/workflows/pre-actions.yml@master
|
|
|
|
with:
|
|
|
|
repository: ${{ github.repository }}
|
|
|
|
ref: ${{ github.sha }}
|
|
|
|
fetch-depth: 0
|
2023-07-16 12:07:10 +07:00
|
|
|
check-runs: '["build", "main-build-passed"]'
|
2023-07-09 19:57:16 +07:00
|
|
|
secrets: inherit
|
2023-06-27 21:43:59 +07:00
|
|
|
|
2023-07-09 19:57:16 +07:00
|
|
|
build:
|
|
|
|
uses: daeuniverse/dae/.github/workflows/seed-build.yml@main
|
2023-07-14 17:19:23 +07:00
|
|
|
with:
|
|
|
|
ref: ${{ github.sha }}
|
2023-07-16 12:07:10 +07:00
|
|
|
build-type: main-build
|
2023-07-16 13:00:27 +07:00
|
|
|
secrets: inherit
|
2023-07-16 12:07:10 +07:00
|
|
|
|
|
|
|
post-actions:
|
|
|
|
if: always()
|
|
|
|
needs: [build]
|
|
|
|
uses: daeuniverse/ci-seed-jobs/.github/workflows/dae-post-actions.yml@master
|
|
|
|
with:
|
|
|
|
check-run-id: "dae-bot[bot]/main-build-passed"
|
|
|
|
check-run-conclusion: ${{ needs.build.result }}
|
|
|
|
secrets: inherit
|