Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Unify build jobs with reusable workflows #583

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

jobs:
format-lint:
name: Code Linting
uses: ./.github/workflows/format-lint.yml

linux:
name: Linux
needs:
- format-lint
uses: ./.github/workflows/linux.yml

macos:
name: macOS
needs:
- format-lint
uses: ./.github/workflows/macos.yml

windows:
name: Windows
needs:
- format-lint
uses: ./.github/workflows/windows.yml
5 changes: 1 addition & 4 deletions .github/workflows/format-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Code Linting

on:
push:
branches:
- master
pull_request:
workflow_call:
workflow_dispatch:

jobs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Linux

on:
push:
branches:
- master
pull_request:
workflow_call:
workflow_dispatch:

env:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: macOS

on:
push:
branches:
- master
pull_request:
workflow_call:
workflow_dispatch:

jobs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Windows

on:
push:
branches:
- master
pull_request:
workflow_call:
workflow_dispatch:

jobs:
Expand Down
Loading