Skip to content

Commit

Permalink
Merge pull request #18 from oblivioncth/reusable_workflows
Browse files Browse the repository at this point in the history
Switch to reusable workflows
  • Loading branch information
oblivioncth authored Sep 1, 2024
2 parents 6b77456 + 8bbb498 commit a6d3171
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 369 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Project
on:
workflow_dispatch:
push:
branches-ignore:
- 'master'
workflow_run:
workflows: Tag and Sync
types: completed
branches: dev
# This is the branch that the original workflow ran on, which is technically dev, due to how
# the "pull_request" trigger works (it works off master correctly for a merged PR but is triggered
# by dev

jobs:
trigger-build:
name: Build Project
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
uses: oblivioncth/actions/.github/workflows/build-cxx-project.yml@v1
secrets:
ffynnon_access: ${{ secrets.OBYBOT_FFYNNON_ACCESS }}
with:
runs_exclude: >
[
{ "compiler": "g++-10" }
]
113 changes: 0 additions & 113 deletions .github/workflows/build-qi-qmp-linux.yml

This file was deleted.

95 changes: 0 additions & 95 deletions .github/workflows/build-qi-qmp-windows.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/check-release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Check Release PR
on:
pull_request:
types: [opened, synchronize, reopened]
branches: master

jobs:
check-pr-correctness:
name: Release PR Correctness Check
uses: oblivioncth/actions/.github/workflows/validate-release-pr.yml@v1
19 changes: 19 additions & 0 deletions .github/workflows/generate-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Generate Release
on:
workflow_run:
workflows: Build Project
types: completed
branches: master

jobs:
generate-release:
name: Generate Release
permissions:
actions: read
contents: write
pages: write
id-token: write
if: github.event.workflow_run.conclusion == 'success'
uses: oblivioncth/actions/.github/workflows/generate-cxx-release.yml@v1
with:
artifacts_run_id: ${{ github.event.workflow_run.id }}
12 changes: 12 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Label PR
on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
label-pr:
name: Label pull-request
permissions:
contents: read
pull-requests: write
uses: oblivioncth/actions/.github/workflows/label-pr.yml@v1
13 changes: 0 additions & 13 deletions .github/workflows/master-pull-request-checks.yml

This file was deleted.

Loading

0 comments on commit a6d3171

Please sign in to comment.