mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Run kernel demos and unit tests for PR changes (#645)
* Run kernel demos and unit tests for PR changes Kernel demos check builds multiple demos from FreeRTOS/FreeRTOS and unit tests check runs unit tests in FreeRTOS/FreeRTOS. Both of these checks currently use main branch of FreeRTOS-Kernel. This commits updates these checks to use the changes in the PR. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Do not specify PR SHA explicitly as that is default Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Remove explicit PR SHA from kernel checks Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> --------- Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
55658e1525
commit
d4d5e43292
1
.github/workflows/kernel-checks.yml
vendored
1
.github/workflows/kernel-checks.yml
vendored
|
@ -28,7 +28,6 @@ jobs:
|
||||||
- name: Checkout Pull Request
|
- name: Checkout Pull Request
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
path: inspect
|
path: inspect
|
||||||
|
|
||||||
# Collect all affected files
|
# Collect all affected files
|
||||||
|
|
42
.github/workflows/kernel-demos.yml
vendored
42
.github/workflows/kernel-demos.yml
vendored
|
@ -14,10 +14,11 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch Kernel Submodule
|
# Checkout user pull request changes
|
||||||
shell: bash
|
- name: Checkout Pull Request
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
with:
|
||||||
|
path: ./FreeRTOS/Source
|
||||||
|
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
@ -42,10 +43,11 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch Kernel Submodule
|
# Checkout user pull request changes
|
||||||
shell: bash
|
- name: Checkout Pull Request
|
||||||
run: |
|
uses: actions/checkout@v2
|
||||||
git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
with:
|
||||||
|
path: ./FreeRTOS/Source
|
||||||
|
|
||||||
- name: Build WIN32-MingW Demo
|
- name: Build WIN32-MingW Demo
|
||||||
working-directory: FreeRTOS/Demo/WIN32-MingW
|
working-directory: FreeRTOS/Demo/WIN32-MingW
|
||||||
|
@ -66,9 +68,11 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch Kernel Submodule
|
# Checkout user pull request changes
|
||||||
shell: bash
|
- name: Checkout Pull Request
|
||||||
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./FreeRTOS/Source
|
||||||
|
|
||||||
- name: Install GCC
|
- name: Install GCC
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -93,9 +97,11 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch Kernel Submodule
|
# Checkout user pull request changes
|
||||||
shell: bash
|
- name: Checkout Pull Request
|
||||||
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./FreeRTOS/Source
|
||||||
|
|
||||||
- name: Install MSP430 Toolchain
|
- name: Install MSP430 Toolchain
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -120,9 +126,11 @@ jobs:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Fetch Kernel Submodule
|
# Checkout user pull request changes
|
||||||
shell: bash
|
- name: Checkout Pull Request
|
||||||
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ./FreeRTOS/Source
|
||||||
|
|
||||||
- name: Install GNU ARM Toolchain
|
- name: Install GNU ARM Toolchain
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
4
.github/workflows/unit-tests.yml
vendored
4
.github/workflows/unit-tests.yml
vendored
|
@ -12,7 +12,9 @@ jobs:
|
||||||
repository: FreeRTOS/FreeRTOS
|
repository: FreeRTOS/FreeRTOS
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Clone This Repo
|
|
||||||
|
# Checkout user pull request changes
|
||||||
|
- name: Checkout Pull Request
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: ./FreeRTOS/Source
|
path: ./FreeRTOS/Source
|
||||||
|
|
Loading…
Reference in a new issue