Skip to content

Commit

Permalink
Run kernel demos and unit tests for PR changes (#645)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Do not specify PR SHA explicitly as that is default

Signed-off-by: Gaurav Aggarwal <[email protected]>

* Remove explicit PR SHA from kernel checks

Signed-off-by: Gaurav Aggarwal <[email protected]>

---------

Signed-off-by: Gaurav Aggarwal <[email protected]>
  • Loading branch information
aggarg authored Mar 17, 2023
1 parent 55658e1 commit d4d5e43
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
1 change: 0 additions & 1 deletion .github/workflows/kernel-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: inspect

# Collect all affected files
Expand Down
42 changes: 25 additions & 17 deletions .github/workflows/kernel-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
submodules: 'recursive'
fetch-depth: 1

- name: Fetch Kernel Submodule
shell: bash
run: |
git submodule update --checkout --init --depth 1 FreeRTOS/Source
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source

- name: Add msbuild to PATH
uses: microsoft/[email protected]
Expand All @@ -42,10 +43,11 @@ jobs:
submodules: 'recursive'
fetch-depth: 1

- name: Fetch Kernel Submodule
shell: bash
run: |
git submodule update --checkout --init --depth 1 FreeRTOS/Source
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source

- name: Build WIN32-MingW Demo
working-directory: FreeRTOS/Demo/WIN32-MingW
Expand All @@ -66,9 +68,11 @@ jobs:
submodules: 'recursive'
fetch-depth: 1

- name: Fetch Kernel Submodule
shell: bash
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source

- name: Install GCC
shell: bash
Expand All @@ -93,9 +97,11 @@ jobs:
submodules: 'recursive'
fetch-depth: 1

- name: Fetch Kernel Submodule
shell: bash
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source

- name: Install MSP430 Toolchain
shell: bash
Expand All @@ -120,9 +126,11 @@ jobs:
submodules: 'recursive'
fetch-depth: 1

- name: Fetch Kernel Submodule
shell: bash
run: git submodule update --checkout --init --depth 1 FreeRTOS/Source
# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source

- name: Install GNU ARM Toolchain
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
repository: FreeRTOS/FreeRTOS
submodules: 'recursive'
fetch-depth: 1
- name: Clone This Repo

# Checkout user pull request changes
- name: Checkout Pull Request
uses: actions/checkout@v2
with:
path: ./FreeRTOS/Source
Expand Down

0 comments on commit d4d5e43

Please sign in to comment.