Skip to content

Commit

Permalink
[brief] Split the main build CI script.
Browse files Browse the repository at this point in the history
[detailed]
- Clang-format and builds should run sequentially, not in parallel.
  • Loading branch information
marovira committed Sep 8, 2024
1 parent d354cfa commit e3cf758
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
name: Build

on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'
- 'LICENSE'
- 'data/**'
- '**/release-*.yml'
tags-ignore:
- "*.*.*"
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'
- 'LICENSE'
- '**/release-*.yml'
tags-ignore:
- "*.*.*"
workflow_call:
workflow_dispatch:

jobs:
format:
uses: ./.github/workflows/clang-format.yml
build:
name: ${{ matrix.config.os }}-${{ matrix.config.preset }}
runs-on: ${{ matrix.config.os }}
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'
- 'LICENSE'
- 'data/**'
- '**/release-*.yml'
tags-ignore:
- "*.*.*"
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.rst'
- 'LICENSE'
- '**/release-*.yml'
tags-ignore:
- "*.*.*"
workflow_dispatch:

jobs:
format:
uses: ./.github/workflows/clang-format.yml
build:
uses: ./.github/workflows/build.yml

0 comments on commit e3cf758

Please sign in to comment.