mirror of https://github.com/ARMmbed/mbed-os.git
GitHub actions: Update checkout version and use safe.directory
parent
8511458066
commit
ade564f0d2
|
@ -18,7 +18,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
mkdir -p SCANCODE
|
mkdir -p SCANCODE
|
||||||
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
|
|
||||||
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
||||||
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
|
| ( grep '.\(c\|cpp\|h\|hpp\|py\)$' || true )
|
||||||
|
@ -56,11 +57,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
-
|
-
|
||||||
name: "include check"
|
name: "include check"
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
|
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
|
||||||
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
|
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
|
||||||
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
|
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
|
||||||
|
@ -72,7 +74,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
-
|
-
|
||||||
name: spell checks
|
name: spell checks
|
||||||
|
@ -113,13 +115,14 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
-
|
-
|
||||||
name: astyle checks
|
name: astyle checks
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
git diff --name-only --diff-filter=d origin/${GITHUB_BASE_REF} \
|
||||||
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
|
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
|
||||||
| ( grep -v -f .astyleignore || true ) \
|
| ( grep -v -f .astyleignore || true ) \
|
||||||
|
@ -129,6 +132,7 @@ jobs:
|
||||||
-
|
-
|
||||||
name: "UTF-8 Check"
|
name: "UTF-8 Check"
|
||||||
run: |
|
run: |
|
||||||
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
# Make sure we're not introducing any text which is not UTF-8 encoded
|
# Make sure we're not introducing any text which is not UTF-8 encoded
|
||||||
git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
|
git diff origin/${GITHUB_BASE_REF} -U0 | ( grep -a '^+' || true ) | ( ! grep -axv '.*' )
|
||||||
|
|
||||||
|
@ -143,7 +147,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout repo
|
name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
|
@ -173,7 +177,7 @@ jobs:
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Checkout repo
|
name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ jobs:
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Build docker containers
|
name: Build docker containers
|
||||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
# use mbed-os-5.15 branch of blinky
|
# use mbed-os-5.15 branch of blinky
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ARMmbed/mbed-os-example-blinky
|
repository: ARMmbed/mbed-os-example-blinky
|
||||||
path: mbed-os-example-blinky
|
path: mbed-os-example-blinky
|
||||||
|
@ -42,7 +42,7 @@ jobs:
|
||||||
rm -rf mbed-os
|
rm -rf mbed-os
|
||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: mbed-os-example-blinky/mbed-os
|
path: mbed-os-example-blinky/mbed-os
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue