@@ -14,102 +14,19 @@ jobs:
1414 matrix :
1515 include :
1616 - os : macos-14
17- profile_path : profiles/armv8/mac-14/
18-
1917 - os : macos-15
20- profile_path : profiles/armv8/mac-15/
2118
2219 runs-on : ${{ matrix.os }}
2320 steps :
2421 - uses : actions/checkout@v4.1.1
25-
26- - name : 📥 Install OS Specific Tools (macos-14)
27- if : ${{ matrix.os == 'macos-14' }}
28- run : |
29- brew install llvm@17
30- ln -s $(brew --prefix llvm@17)/bin/clang-tidy /usr/local/bin/
31- brew install pipx
32- pipx ensurepath
33-
34- - name : 📥 Install OS Specific Tools (macos-15)
35- if : ${{ matrix.os == 'macos-15' }}
36- run : |
37- brew install llvm@17
38- ln -s $(brew --prefix llvm@17)/bin/clang-tidy /usr/local/bin/
39- brew install pipx
40- pipx ensurepath
41-
42- - name : 📥 Install Conan 2.18.0
43- run : pipx install conan==2.18.0
44-
45- - name : 🔍 conan version
46- run : conan --version
47-
48- - name : 🔍 cmake version
49- run : cmake --version
50-
51- - name : 🔍 clang++ version
52- run : clang++-17 --version || clang++ --version
53-
54- - name : 🔍 /usr/bin version
55- run : ls /usr/bin/clang*
56-
57- - name : 🔍 clang-tidy version
58- run : clang-tidy-17 --version || clang-tidy --version
59-
60- - name : 📡 Add `libhal` repo to conan remotes
61- run : conan remote add libhal
62- https://libhal.jfrog.io/artifactory/api/conan/trunk-conan
63-
64- - name : 📡 Create and setup default profile
65- run : conan profile detect --force
66-
67- - name : 👁️🗨️ Show conan profile (original)
68- run : conan profile show
69-
70- - name : 📡 Install default system profile for ${{ matrix.os }}
71- run : conan config install -sf ${{ matrix.profile_path }} -tf profiles https://github.com/libhal/conan-config.git
72-
73- - name : 📡 Install libhal platform profiles for mac
74- run : conan config install -sf conan/profiles/v1 -tf profiles https://github.com/libhal/libhal-mac.git
75-
76- - name : 👁️🗨️ Show conan profile (new)
77- run : conan profile show
78-
79- - name : 📡 Install libhal settings_user.yml
80- run : conan config install -sf profiles/baremetal/v2 https://github.com/libhal/conan-config.git
81-
82- - name : Set Version Environment Variable
83- run : |
84- if [ -z "${{ github.ref_name }}" ]; then
85- echo "VERSION=latest" >> $GITHUB_ENV
86- else
87- echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
88- fi
89-
90- - name : 📦 Create `Debug` package for ${{ inputs.profile }}
91- run : conan create . -pr mac-hal -s build_type=Debug --version=${{ env.VERSION }}
92-
93- - name : 📦 Create `RelWithDebInfo` package for ${{ inputs.profile }}
94- run : conan create . -pr mac-hal -s build_type=RelWithDebInfo --version=${{ env.VERSION }}
95-
96- - name : 📦 Create `MinSizeRel` package for ${{ inputs.profile }}
97- run : conan create . -pr mac-hal -s build_type=MinSizeRel --version=${{ env.VERSION }}
98-
99- - name : 📦 Create `Release` package for ${{ inputs.profile }}
100- run : conan create . -pr mac-hal -s build_type=Release --version=${{ env.VERSION }}
101-
102- - name : 🧱 Build demos (Debug)
103- run : conan build demos -pr mac-hal -s build_type=Debug
104-
105- - name : 🧱 Build demos (RelWithDebInfo)
106- run : conan build demos -pr mac-hal -s build_type=RelWithDebInfo
107-
108- - name : 🧱 Build demos (MinSizeRel)
109- run : conan build demos -pr mac-hal -s build_type=MinSizeRel
110-
111- - name : 🧱 Build demos (Release)
112- run : conan build demos -pr mac-hal -s build_type=Release
22+ - run : pipx install conan>=2.18.0
23+ - run : conan --version
24+ - run : conan config install https://github.com/libhal/conan-config2.git
25+ - run : conan hal setup
26+ - run : conan profile show
27+ - run : conan create . -pr:a hal/tc/llvm -s build_type=Debug --version=${{ github.ref_name }}
28+ - run : conan create . -pr:a hal/tc/llvm -s build_type=MinSizeRel --version=${{ github.ref_name }}
29+ - run : conan create . -pr:a hal/tc/llvm -s build_type=Release --version=${{ github.ref_name }}
11330
11431 - name : 📡 Sign into JFrog Artifactory
11532 env :
0 commit comments