Skip to content

Commit

Permalink
Run kernel demos and unit tests for PR changes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
aggarg committed Mar 16, 2023
1 parent 55658e1 commit 141f72b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/kernel-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Add msbuild to PATH
uses: microsoft/[email protected]
Expand All @@ -42,10 +44,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Build WIN32-MingW Demo
working-directory: FreeRTOS/Demo/WIN32-MingW
Expand All @@ -66,9 +70,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Install GCC
shell: bash
Expand All @@ -93,9 +100,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Install MSP430 Toolchain
shell: bash
Expand All @@ -120,9 +130,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Install GNU ARM Toolchain
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ 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:
ref: ${{ github.event.pull_request.head.sha }}
path: ./FreeRTOS/Source

- name: Setup Python
Expand Down

0 comments on commit 141f72b

Please sign in to comment.