Skip to content

Commit 8923e2c

Browse files
authored
👷 Upgrade version of conan for demos (#178)
* 👷 Upgrade version of conan for demos * Attempt to fix deploy
1 parent 352b363 commit 8923e2c

File tree

3 files changed

+41
-32
lines changed

3 files changed

+41
-32
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,50 @@ jobs:
1414
uses: libhal/ci/.github/workflows/library_check.yml@5.x.y
1515
secrets: inherit
1616

17-
deploy_check:
18-
uses: ./.github/workflows/deploy.yml
17+
deploy_gcc:
18+
uses: ./.github/workflows/deploy_with_cache.yml
1919
with:
20+
compiler_profile: hal/tc/arm-gcc
21+
version: latest
22+
upload_suffix: gcc
23+
secrets: inherit
24+
25+
deploy_llvm:
26+
uses: ./.github/workflows/deploy_with_cache.yml
27+
with:
28+
compiler_profile: hal/tc/llvm
2029
version: latest
30+
upload_suffix: llvm
2131
secrets: inherit
2232

2333
demo_check_lpc4074:
2434
uses: libhal/ci/.github/workflows/app_builder2.yml@5.x.y
2535
with:
2636
compiler_profile: hal/tc/arm-gcc
2737
platform_profile: hal/mcu/lpc4074
38+
conan_version: 2.23.0
2839
secrets: inherit
2940

3041
demo_check_lpc4078:
3142
uses: libhal/ci/.github/workflows/app_builder2.yml@5.x.y
3243
with:
3344
compiler_profile: hal/tc/arm-gcc
3445
platform_profile: hal/mcu/lpc4078
46+
conan_version: 2.23.0
3547
secrets: inherit
3648

3749
demo_check_stm32f103c8:
3850
uses: libhal/ci/.github/workflows/app_builder2.yml@5.x.y
3951
with:
4052
compiler_profile: hal/tc/arm-gcc
4153
platform_profile: hal/mcu/stm32f103c8
54+
conan_version: 2.23.0
4255
secrets: inherit
4356

4457
demo_check_stm32f411re:
4558
uses: libhal/ci/.github/workflows/app_builder2.yml@5.x.y
4659
with:
4760
compiler_profile: hal/tc/arm-gcc
4861
platform_profile: hal/mcu/stm32f411re
62+
conan_version: 2.23.0
4963
secrets: inherit

.github/workflows/deploy.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@ on:
44
workflow_dispatch:
55
release:
66
types: [published]
7-
workflow_call:
8-
inputs:
9-
version:
10-
type: string
11-
default: ${{ github.ref_name }}
127

138
jobs:
149
gcc:
1510
uses: ./.github/workflows/deploy_with_cache.yml
1611
with:
1712
compiler_profile: hal/tc/arm-gcc
18-
version: ${{ inputs.version }}
13+
version: ${{ github.ref_name }}
1914
upload_suffix: gcc
2015
secrets: inherit
2116

2217
llvm:
2318
uses: ./.github/workflows/deploy_with_cache.yml
2419
with:
2520
compiler_profile: hal/tc/llvm
26-
version: ${{ inputs.version }}
21+
version: ${{ github.ref_name }}
2722
upload_suffix: llvm
2823
secrets: inherit

src/interrupt.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -304,29 +304,29 @@ extern "C"
304304
__attribute__((naked)) void __wrap_arm_hardfault_isr(void) // NOLINT
305305
{
306306
#if defined(__CORTEX_M)
307-
__asm volatile(" movs r0, #4 \n"
308-
" mov r1, lr \n"
309-
" tst r0, r1 \n"
310-
" beq .use_msp \n"
311-
" mrs r0, psp \n"
312-
" b .check_debug \n"
313-
".use_msp: \n"
314-
" mrs r0, msp \n"
315-
".check_debug: \n"
316-
" ldr r1, =0xE000ED2C \n"
317-
" ldr r2, [r1] \n"
318-
" lsls r2, #1 \n"
319-
".hardfault_loop: \n"
320-
" bcc .hardfault_loop \n"
321-
" ldr r2, [r1] \n"
322-
" str r2, [r1] \n"
323-
" ldr r1, [r0, #24] \n"
324-
" adds r1, r1, #2 \n"
325-
" str r1, [r0, #24] \n"
326-
" movs r1, #1 \n"
327-
" negs r1, r1 \n"
328-
" str r1, [r0, #0] \n"
329-
" bx lr \n"
307+
__asm volatile(" movs r0, #4 \n"
308+
" mov r1, lr \n"
309+
" tst r0, r1 \n"
310+
" beq .use_msp \n"
311+
" mrs r0, psp \n"
312+
" b .check_debug \n"
313+
".use_msp: \n"
314+
" mrs r0, msp \n"
315+
".check_debug: \n"
316+
" ldr r1, =0xE000ED2C \n"
317+
" ldr r2, [r1] \n"
318+
" lsls r2, #1 \n"
319+
".hardfault_loop: \n"
320+
" bcc .hardfault_loop \n"
321+
" ldr r2, [r1] \n"
322+
" str r2, [r1] \n"
323+
" ldr r1, [r0, #24] \n"
324+
" adds r1, r1, #2 \n"
325+
" str r1, [r0, #24] \n"
326+
" movs r1, #1 \n"
327+
" negs r1, r1 \n"
328+
" str r1, [r0, #0] \n"
329+
" bx lr \n"
330330
:
331331
:
332332
: "memory");

0 commit comments

Comments
 (0)