mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 14:12:33 +00:00
Build RPM packages only on pushes to master and remove the manual package workflow trigger. Keep DEB checks on pull requests and retain the rolling master publication with its current-head checks and release serialization. Cancel outdated runs of the same pull request within each CI workflow. Give other events a separate group per run so master package builds and publication are not interrupted by newer pushes. Keep the full regression matrix and all build and test steps unchanged.
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: Checkpatch upon pull request
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
checkpatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@main
|
|
with:
|
|
ref: ${{github.event.pull_request.head.sha}}
|
|
fetch-depth: 0
|
|
|
|
- name: Download checkpatch.pl
|
|
run: |
|
|
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl -o checkpatch.pl
|
|
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt -o spelling.txt
|
|
curl https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch -o const_structs.checkpatch
|
|
chmod +x checkpatch.pl
|
|
|
|
- name: Run checkpatch.pl
|
|
run: |
|
|
CHECKPATCH_PATH=. ./scripts/checkpatch_commits ${{github.event.pull_request.base.sha}}
|