Skip to content

Commit a32ea44

Browse files
authored
feat: update to latest main of amp-cucumber-cpp-runner (#478)
Additional changes: ci: add windows build from amp-devcontainer-cpp ci: use ccache instead of sccache ci: limit trigger scope for social interaction to only opened types
1 parent ac5e276 commit a32ea44

File tree

12 files changed

+72
-27
lines changed

12 files changed

+72
-27
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ jobs:
2121
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
2222
with:
2323
key: ${{ github.job }}-ubuntu-latest
24-
variant: sccache
2524
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
2625
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
2726
with:
2827
configurePreset: "host"
2928
buildPreset: "host-Debug-WithPackage"
3029
testPreset: "host"
31-
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']"
30+
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']"
3231
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
3332
with:
3433
name: hal_st
@@ -53,19 +52,39 @@ jobs:
5352
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
5453
with:
5554
key: ${{ github.job }}-${{ matrix.os }}
56-
variant: sccache
5755
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
5856
with:
5957
configurePreset: "host-single-Debug"
6058
buildPreset: "host-single-Debug"
6159
testPreset: "host-single-Debug"
62-
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=sccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=sccache']"
60+
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']"
6361
- name: Upload test logs
6462
if: ${{ failure() }}
6563
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
6664
with:
6765
name: test-logs
6866
path: build/host/Testing/Temporary/
67+
host_build_clang_msvc:
68+
name: Windows Host Build from Devcontainer
69+
runs-on: [ubuntu-latest]
70+
container: ghcr.io/philips-software/amp-devcontainer-cpp:5.2.0@sha256:c47fcc83b59fb08f3a3a6e591b18bad49b3862acc35770fca6cec9ad0adb9cb2 # v5.2.0
71+
steps:
72+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
73+
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
74+
id: cache-winsdk
75+
with:
76+
path: /winsdk
77+
key: cache-winsdk
78+
- if: ${{ steps.cache-winsdk.outputs.cache-hit != 'true' }}
79+
run: xwin --accept-license --manifest-version 17 splat --preserve-ms-arch-notation --include-debug-libs && mv .xwin-cache/splat/ /winsdk
80+
- uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14
81+
with:
82+
key: ${{ github.job }}
83+
- uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
84+
with:
85+
configurePreset: "Windows"
86+
buildPreset: "Windows-Release"
87+
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']"
6988
embedded_build:
7089
name: Embedded Build
7190
runs-on: ubuntu-latest

.github/workflows/social-interaction.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
---
22
name: Social Interaction
33

4-
on: [pull_request, issues]
4+
on:
5+
pull_request:
6+
types: [opened]
7+
issues:
8+
types: [opened]
59

610
permissions:
711
contents: read

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.cache
22
.vs/
33
.vscode/.cortex-debug*
4+
.xwin-cache
45
build/
56
out/
67
megalinter-reports/

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ if (HALST_STANDALONE)
2626
FetchContent_Declare(
2727
emil
2828
GIT_REPOSITORY https://github.com/philips-software/amp-embedded-infra-lib.git
29-
GIT_TAG db70a3a415c9324a6e30043bb39bf38c6ae4e394 # unreleased
29+
GIT_TAG 76b60344061b0904c40e993b74717a85a7a6e376 # unreleased
3030
)
3131
FetchContent_MakeAvailable(emil)
3232

3333
if (EMIL_HOST_BUILD)
3434
FetchContent_Declare(
3535
cucumber-cpp-runner
3636
GIT_REPOSITORY https://github.com/philips-software/amp-cucumber-cpp-runner.git
37-
GIT_TAG 70c424e53f532f520d96a303b6586272d3efc5f5 # unreleased
37+
GIT_TAG 08d653fe47d31d7e070195f7536d4f32e03180e6 # unreleased
3838
)
3939

4040
FetchContent_MakeAvailable(cucumber-cpp-runner)

CMakePresets.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,22 @@
177177
{
178178
"name": "stm32h573",
179179
"inherits": "stm32",
180-
"toolchainFile": "${sourceDir}/build/${presetName}/_deps/emil-src/cmake//toolchain-arm-gcc-m33-fpv5-sp-d16.cmake",
180+
"toolchainFile": "${sourceDir}/build/${presetName}/_deps/emil-src/cmake/toolchain-arm-gcc-m33-fpv5-sp-d16.cmake",
181181
"cacheVariables": {
182182
"TARGET_CORTEX": "m33",
183183
"TARGET_MCU_FAMILY": "stm32h5xx",
184184
"TARGET_MCU": "stm32h573"
185185
}
186+
},
187+
{
188+
"name": "Windows",
189+
"inherits": "defaults",
190+
"toolchainFile": "${sourceDir}/build/${presetName}/_deps/emil-src/cmake/toolchain-clang-x86_64-pc-windows-msvc.cmake",
191+
"environment": {
192+
"CCACHE_DEPEND": "true",
193+
"CCACHE_COMPILERTYPE": "clang-cl"
194+
},
195+
"generator": "Ninja Multi-Config"
186196
}
187197
],
188198
"buildPresets": [
@@ -292,6 +302,16 @@
292302
"name": "stm32h573-MinSizeRel",
293303
"configuration": "MinSizeRel",
294304
"configurePreset": "stm32h573"
305+
},
306+
{
307+
"name": "Windows-Release",
308+
"configuration": "Release",
309+
"configurePreset": "Windows"
310+
},
311+
{
312+
"name": "Windows-RelWithDebInfo",
313+
"configuration": "RelWithDebInfo",
314+
"configurePreset": "Windows"
295315
}
296316
],
297317
"testPresets": [

integration_test/runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ target_sources(integration_test.runner PRIVATE
1414

1515
target_link_libraries(integration_test.runner PRIVATE
1616
args
17-
cucumber-cpp
17+
cucumber_cpp.library
1818
integration_test.logic
1919
hal.generic
2020
gtest

integration_test/runner/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cucumber-cpp/Hooks.hpp"
1+
#include "cucumber_cpp/library/Hooks.hpp"
22
#include "generated/echo/Testing.pb.hpp"
33
#include "hal/generic/TimerServiceGeneric.hpp"
44
#include "infra/timer/Waiting.hpp"

integration_test/runner/Main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#include "cucumber-cpp/Application.hpp"
1+
2+
#include "cucumber_cpp/library/Application.hpp"
23

34
int main(int argc, char** argv)
45
{
5-
cucumber_cpp::Application application{};
6+
cucumber_cpp::library::Application application{};
67

78
application.CliParser().add_option("--target", *application.ProgramContext().EmplaceAt<std::string>("target"), "COM port or hostname (ws://<host>/path or tcp://<host>) of the amp-hal-st integration test board")->required();
89

integration_test/runner/StepsGpio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cucumber-cpp/Steps.hpp"
1+
#include "cucumber_cpp/library/Steps.hpp"
22
#include "generated/echo/Testing.pb.hpp"
33
#include "infra/timer/Waiting.hpp"
44
#include "integration_test/logic/Tested.hpp"

integration_test/runner/StepsUart.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "cucumber-cpp/Steps.hpp"
1+
#include "cucumber_cpp/library/Steps.hpp"
22
#include "generated/echo/Testing.pb.hpp"
33
#include "infra/timer/Waiting.hpp"
44
#include "integration_test/logic/Tested.hpp"

0 commit comments

Comments
 (0)