1 name: FreeRTOS-Kernel Demos
2 on: [push, pull_request]
7 runs-on: windows-latest
9 - name: Checkout the FreeRTOS/FreeRTOS Repository
10 uses: actions/checkout@v2
13 repository: FreeRTOS/FreeRTOS
14 submodules: 'recursive'
17 # Checkout user pull request changes
18 - name: Checkout Pull Request
19 uses: actions/checkout@v2
21 path: ./FreeRTOS/Source
23 - name: Add msbuild to PATH
24 uses: microsoft/setup-msbuild@v1.1
26 - name: Build WIN32-MSVC Demo
27 working-directory: FreeRTOS/Demo/WIN32-MSVC
28 run: msbuild WIN32.sln -t:rebuild
30 - name: Build WIN32-MSVC-Static-Allocation-Only Demo
31 working-directory: FreeRTOS/Demo/WIN32-MSVC-Static-Allocation-Only
32 run: msbuild WIN32.sln -t:rebuild
36 runs-on: windows-latest
38 - name: Checkout the FreeRTOS/FreeRTOS Repository
39 uses: actions/checkout@v2
42 repository: FreeRTOS/FreeRTOS
43 submodules: 'recursive'
46 # Checkout user pull request changes
47 - name: Checkout Pull Request
48 uses: actions/checkout@v2
50 path: ./FreeRTOS/Source
52 - name: Build WIN32-MingW Demo
53 working-directory: FreeRTOS/Demo/WIN32-MingW
61 runs-on: ubuntu-latest
63 - name: Checkout the FreeRTOS/FreeRTOS Repository
64 uses: actions/checkout@v2
67 repository: FreeRTOS/FreeRTOS
68 submodules: 'recursive'
71 # Checkout user pull request changes
72 - name: Checkout Pull Request
73 uses: actions/checkout@v2
75 path: ./FreeRTOS/Source
80 sudo apt-get -y update
81 sudo apt-get -y install build-essential
83 - name: Build Posix_GCC Demo
85 working-directory: FreeRTOS/Demo/Posix_GCC
88 - name: Build Posix_GCC Demo for Coverage Test
90 working-directory: FreeRTOS/Demo/Posix_GCC
91 run: make -j COVERAGE_TEST=1
94 name: GNU MSP430 Toolchain
95 runs-on: ubuntu-latest
97 - name: Checkout the FreeRTOS/FreeRTOS Repository
98 uses: actions/checkout@v2
101 repository: FreeRTOS/FreeRTOS
102 submodules: 'recursive'
105 # Checkout user pull request changes
106 - name: Checkout Pull Request
107 uses: actions/checkout@v2
109 path: ./FreeRTOS/Source
111 - name: Install MSP430 Toolchain
114 sudo apt-get -y update
115 sudo apt-get -y install gcc-msp430 build-essential
117 - name: Build msp430_GCC Demo
119 working-directory: FreeRTOS/Demo/msp430_GCC
123 name: GNU ARM Toolchain
124 runs-on: ubuntu-latest
126 - name: Checkout the FreeRTOS/FreeRTOS Repository
127 uses: actions/checkout@v2
130 repository: FreeRTOS/FreeRTOS
133 - name: Fetch Community-Supported-Demos Submodule
136 # Fetch Community-Supported-Demos Submodule
137 echo "::group::Fetch Community-Supported-Demos Submodule"
138 git submodule update --checkout --init --depth 1 FreeRTOS/Demo/ThirdParty/Community-Supported-Demos
140 if [ "$?" = "0" ]; then
141 echo -e "\033[32;3mCloned the Community-Supported-Demos\033[0m"
143 echo -e "\033[32;31mCommunity-Supported-Demos Clone Failed...\033[0m"
147 # Checkout user pull request changes
148 - name: Checkout Pull Request
149 uses: actions/checkout@v2
151 path: ./FreeRTOS/Source
153 - name: Install GNU ARM Toolchain
156 sudo apt-get -y update
157 sudo apt-get -y install gcc-arm-none-eabi build-essential cmake git ninja-build python3-minimal
159 - name: Build CORTEX_MPU_M3_MPS2_QEMU_GCC Demo
161 working-directory: FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC
164 - name: Build CORTEX_LM3S102_GCC Demo
166 working-directory: FreeRTOS/Demo/CORTEX_LM3S102_GCC
169 - name: Build CORTEX_M3_MPS2_QEMU_GCC Demo
171 working-directory: FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC
176 - name: Build CORTEX_M3_MPS2_QEMU_GCC Demo
178 working-directory: FreeRTOS/Demo/CORTEX_M3_MPS2_QEMU_GCC
183 - name: Build CORTEX_LM3S811_GCC Demo
185 working-directory: FreeRTOS/Demo/CORTEX_LM3S811_GCC
188 - name: Build CORTEX_M0+_RP2040 Demos
190 working-directory: FreeRTOS/Demo/ThirdParty/Community-Supported-Demos/CORTEX_M0+_RP2040
192 git clone https://github.com/raspberrypi/pico-sdk.git
193 cmake -B build -DPICO_SDK_PATH=pico-sdk -GNinja
194 ninja -C build --verbose
196 - name: Build CORTEX_MPS2_QEMU_IAR_GCC Demo
198 working-directory: FreeRTOS/Demo/CORTEX_MPS2_QEMU_IAR_GCC
199 run: make -C build/gcc -j