mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-02-06 10:41:44 +08:00
CI: add win32-mingw demo to GithubActions workflow
This commit is contained in:
committed by
Paul Bartell
parent
c2cdc3cb36
commit
61fed35107
26
.github/workflows/freertos_demos.yml
vendored
26
.github/workflows/freertos_demos.yml
vendored
@@ -3,7 +3,7 @@ on: pull_request
|
||||
|
||||
jobs:
|
||||
WIN32-MSVC:
|
||||
name: Microsoft Visual C Compiler (WIN32)
|
||||
name: WIN32 MSVC
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
@@ -25,6 +25,30 @@ jobs:
|
||||
working-directory: FreeRTOS/Demo/WIN32-MSVC-Static-Allocation-Only
|
||||
run: msbuild WIN32.sln -t:rebuild
|
||||
|
||||
WIN32-MingW:
|
||||
name: WIN32 MingW
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Fetch Kernel Submodule
|
||||
shell: bash
|
||||
run: |
|
||||
git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
||||
|
||||
- name: Fetch Kernel Submodule
|
||||
shell: bash
|
||||
run: |
|
||||
git submodule update --checkout --init --depth 1 FreeRTOS/Source
|
||||
|
||||
- name: Build WIN32-MingW Demo
|
||||
working-directory: FreeRTOS/Demo/WIN32-MingW
|
||||
run: |
|
||||
gcc --version
|
||||
make --version
|
||||
make
|
||||
|
||||
POSIX-GCC:
|
||||
name: Native GCC
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -12,8 +12,8 @@ else
|
||||
endif
|
||||
|
||||
# Linker - Note this expects you are using MinGW version of GCC
|
||||
LD := gcc
|
||||
LDFLAGS := -Xlinker -Map=$(BUILD_DIR)/rtosdemo.map
|
||||
LD := ${CC}
|
||||
LDFLAGS := -Xlinker -Map=$(BUILD_DIR)/rtosdemo.map
|
||||
|
||||
# Executable Targets
|
||||
EXE := $(BUILD_DIR)/RTOSDemo.exe
|
||||
|
||||
Reference in New Issue
Block a user