Skip to content

Commit

Permalink
[Enhancement] CI: Speed Up CI by Parallel Checks (#1235)
Browse files Browse the repository at this point in the history
* Changed ::= CI:  speed up CI by defining parallel checks

* Skip ::= remove TWS

* Create summary of recent changes

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kevinmatthes and github-actions[bot] committed Feb 18, 2024
1 parent 049fe8d commit e06bc1c
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 16 deletions.
71 changes: 55 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,67 @@ jobs:
bors:
needs:
- actionlint
- cargo
- cffconvert
- just
- renovate-linter
runs-on: ubuntu-latest
steps:
- run: bash -c 'exit 0'

cargo:
needs:
- cargo-features
- cargo-general
runs-on: ubuntu-latest
steps:
- run: bash -c 'exit 0'

cargo-features:
runs-on: ubuntu-latest
steps:
- run: rustup update

- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
persist-credentials: false

- run: cargo ${{ matrix.subcommand }} ${{ matrix.feature }}
strategy:
matrix:
feature:
- ;
- --all-features
- --no-default-features
- --no-default-features -F cff
- --no-default-features -F cff-create
- --no-default-features -F mkcws
- --no-default-features -F rs2md
- --no-default-features -F uncrlf
- --no-default-features -F utilities
subcommand:
- b
- c
- clippy
- d
- t

cargo-general:
runs-on: ubuntu-latest
steps:
- run: rustup update

- uses: actions/checkout@v4.1.1
with:
persist-credentials: false

- run: cargo ${{ matrix.subcommand }}
strategy:
matrix:
subcommand:
- fmt --check
- r -- complain .github/ src/ tests/

cffconvert:
runs-on: ubuntu-latest
steps:
Expand All @@ -83,21 +137,6 @@ jobs:
- tests/assets/CITATION.cff/input_6.cff
- tests/assets/CITATION.cff/input_7.cff

just:
runs-on: ubuntu-latest
steps:
- run: rustup update

- uses: actions/checkout@v4.1.1
with:
persist-credentials: false

- uses: taiki-e/install-action@v2.27.2
with:
tool: just

- run: just ci

renovate-linter:
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 8 additions & 0 deletions changelog.d/20240218_215702_GitHub_Actions_parallel-ci.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(
references: {},
changes: {
"Changed": [
"CI: speed up CI by defining parallel checks",
],
},
)

0 comments on commit e06bc1c

Please sign in to comment.