|
1 | 1 | name: Build C Boilerplate application and check if C SDK build parameters are still correct
|
2 | 2 |
|
3 | 3 | on:
|
| 4 | + pull_request: |
4 | 5 | workflow_dispatch:
|
5 | 6 | schedule:
|
6 | 7 | # * is a special character in YAML so you have to quote this string
|
|
15 | 16 | - name: Checkout C SDK Build Parameters Extractor
|
16 | 17 | uses: actions/checkout@v4
|
17 | 18 | with:
|
18 |
| - repository: LedgerHQ/csdk_build_params_x |
| 19 | + repository: LedgerHQ/csdk_build_parameters_extractor |
19 | 20 | path: c_sdk_build_params_x
|
20 | 21 | - name: Build C SDK Build Parameters Extractor
|
21 | 22 | run: |
|
@@ -48,15 +49,21 @@ jobs:
|
48 | 49 | name: c_sdk_build_params_extractor
|
49 | 50 | - name: Run C SDK Build Parameters Extractor
|
50 | 51 | run: |
|
51 |
| - c_sdk_build_params_extractor --app-path c_boilerplate \ |
| 52 | + # to be suppressed when C SDK API_LEVEL_24 is available in dev-tools |
| 53 | + git clone https://github.com/LedgerHQ/ledger-secure-sdk.git --branch API_LEVEL_24 --single-branch c_sdk |
| 54 | + echo "setting LEDGER_SDK_PATH to $(realpath c_sdk)" |
| 55 | + export LEDGER_SDK_PATH=$(realpath c_sdk) |
| 56 | + # ####################################### # |
| 57 | + chmod +x cbpx |
| 58 | + ./cbpx --app-path c_boilerplate \ |
52 | 59 | --device ${{ matrix.target }}
|
53 | 60 | # Compare output with matching file
|
54 |
| - diff c_sdk_build_${{ matrix.target }}.cflags ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.cflags |
| 61 | + diff -Z c_sdk_build_${{ matrix.target }}.cflags ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.cflags |
55 | 62 | if [ $? -ne 0 ]; then
|
56 | 63 | echo "C SDK build parameters CFLAGS do not match for target ${{ matrix.target }}"
|
57 | 64 | exit 1
|
58 | 65 | fi
|
59 |
| - diff c_sdk_build_${{ matrix.target }}.defines ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.defines |
| 66 | + diff -Z c_sdk_build_${{ matrix.target }}.defines ledger_secure_sdk_sys/c_sdk_build_${{ matrix.target }}.defines |
60 | 67 | if [ $? -ne 0 ]; then
|
61 | 68 | echo "C SDK build parameters DEFINES do not match for target ${{ matrix.target }}"
|
62 | 69 | exit 1
|
|
0 commit comments