-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from CESNET/ci-atomic-commits
github-actions - add atomic-commits check
- Loading branch information
Showing
5 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Install Dependencies' | ||
description: 'Install required dependencies in container' | ||
|
||
inputs: | ||
clang-tools: | ||
description: 'Install clang & clang-tools-extra' | ||
required: false | ||
default: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Install build dependencies | ||
shell: bash | ||
run: | | ||
dnf install -y make gcc-c++ cmake3 git rpm-build fuse3-devel | ||
- name: Install clang tools | ||
if: ${{ inputs.clang-tools == 'true' }} | ||
shell: bash | ||
run: | | ||
dnf install -y clang clang-tools-extra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: check-atomic-commits | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
atomic-commits: | ||
runs-on: ubuntu-latest | ||
container: oraclelinux:9 | ||
steps: | ||
- name: Install git | ||
run: dnf install -y git | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Mark github workspace as safe | ||
run: git config --system --add safe.directory $PWD | ||
- name: List commits and run make for each | ||
run: | | ||
git rev-list --reverse ${{ github.event.pull_request.base.sha }}..HEAD | while read commit; do | ||
git checkout $commit | ||
make | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters