Skip to content

Commit 68b299a

Browse files
authored
🚧 Refactor CI workflows to use Conan 2.23.0 and consolidate builds (#98)
Upgrade default Conan version from 2.16.1 to 2.23.0 across workflows and streamline the setup process by replacing manual remote/profile configuration with the new `conan hal setup` command. Consolidate individual Cortex-M architecture jobs into two unified jobs (LLVM and GCC) using a new baremetal_package.sh script that builds all architectures sequentially. This reduces workflow complexity from 14+ separate jobs to 2 consolidated jobs while maintaining support for all Cortex-M variants (M0, M0+, M1, M3, M4, M4F, M7F, M7D, M23, M33, M33F, M35PF, M55, M85). Add modules_support_needed flag to control GCC build execution, since GCC doesn't currently support C++ modules. Update compiler profile references from versioned hal/tc/arm-gcc-12.3 to unversioned hal/tc/arm-gcc for better maintainability.
1 parent 450dde6 commit 68b299a

File tree

4 files changed

+188
-307
lines changed

4 files changed

+188
-307
lines changed

.github/workflows/app_builder2.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
default: ""
2626
conan_version:
2727
type: string
28-
default: "2.16.1"
28+
default: "2.23.0"
2929
compiler_profile:
3030
type: string
3131
required: true
@@ -59,18 +59,11 @@ jobs:
5959
- name: 📥 Install Conan ${{ inputs.conan_version }}
6060
run: pipx install conan==${{ inputs.conan_version }}
6161

62-
- name: 📡 Add `libhal` repo to conan remotes
63-
run: conan remote add libhal
64-
https://libhal.jfrog.io/artifactory/api/conan/trunk-conan
65-
66-
- name: 📡 Create and setup default profile
67-
run: conan profile detect --force
68-
69-
- name: 👁️‍🗨️ Show conan profile
70-
run: conan profile show
71-
7262
- name: Install libhal conan config
7363
run: conan config install https://github.com/libhal/conan-config2.git --args="-b ${{ inputs.config2_version }}"
7464

65+
- name: Setup libhal
66+
run: conan hal setup
67+
7568
- name: 🏗️ Build Application for ${{ inputs.profile }}
7669
run: conan build ${{ inputs.dir }} -pr ${{ inputs.compiler_profile }} -pr ${{ inputs.platform_profile }}

0 commit comments

Comments
 (0)