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: Update and add rule for cancelling jobs already running #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
15 changes: 9 additions & 6 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: C/C++ CI
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cancel-in-progress: true

on:
push:
branches: [ master ]
branches: [ main ]
paths:
- 'meson.build'
- 'compat/**'
Expand All @@ -11,7 +14,7 @@ on:
- '.github/workflows/**'

pull_request:
branches: [ master ]
branches: [ main ]
paths:
- 'meson.build'
- 'compat/**'
Expand All @@ -31,11 +34,11 @@ jobs:
run: |
sudo dnf install -y gcc gcc-c++ flex bison meson ninja-build make libedit-devel libcurl-devel libxo-devel openssl-devel

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: build and check
run: |
meson setup build -Db_buildtype=debug
meson setup build --buildtype=debug
ninja -C build -v
meson test -C build -v

Expand Down Expand Up @@ -79,10 +82,10 @@ jobs:
make
make install

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: build and check
run: |
meson setup build --werror -Db_buildtype=debug -Drpmatch_path=/usr/local/lib
meson setup build --werror --buildtype=debug -Drpmatch_path=/usr/local/lib
ninja -C build -v
meson test -C build -v
Loading