-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: optional use git if found get branch and commit
- Loading branch information
1 parent
7d806e8
commit 34b2a42
Showing
4 changed files
with
33 additions
and
8 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 |
---|---|---|
|
@@ -17,11 +17,14 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Checkout is performed out of the container and doesn't match our user | ||
- name: Fix checkout ownership | ||
run: chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" | ||
|
||
- name: Install dependencies | ||
run: | | ||
apk update && apk add cppcheck python3-dev | ||
python3 -m pip install cmake-format | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- uses: pre-commit/[email protected] | ||
|
||
|
@@ -39,7 +42,7 @@ jobs: | |
git diff --exit-code | ||
linux: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
container: seladb/${{ matrix.image }} | ||
strategy: | ||
matrix: | ||
|
@@ -72,6 +75,10 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Checkout is performed out of the container and doesn't match our user | ||
- name: Fix checkout ownership | ||
run: chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" | ||
|
||
- name: Setup Intel Compiler variables | ||
if: contains(matrix.image, 'icpx') | ||
run: | | ||
|
@@ -125,7 +132,7 @@ jobs: | |
verbose: true | ||
|
||
dpdk: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
container: seladb/${{ matrix.image }} | ||
strategy: | ||
matrix: | ||
|
@@ -174,7 +181,7 @@ jobs: | |
run: cd build_examples/tutorials_bin && ./Tutorial-HelloWorld | ||
|
||
pfring: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
container: seladb/ubuntu2004-pfring | ||
strategy: | ||
matrix: | ||
|
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