Skip to content

🧪 CI

🧪 CI #40

Workflow file for this run

# Copyright 2024 - 2025 Khalil Estell and the libhal contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 🧪 tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 12 * * 0"
jobs:
run_tests:
strategy:
fail-fast: false
matrix:
include:
- os: macos-14
profile_path: profiles/x86_64/mac-14/
- os: macos-15
profile_path: profiles/x86_64/mac-15/
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.1.1
- name: 📥 Install OS Specific Tools (macos-14)
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install llvm@17
ln -s $(brew --prefix llvm@17)/bin/clang-tidy /usr/local/bin/
brew install pipx
pipx ensurepath
- name: 📥 Install OS Specific Tools (macos-15)
if: ${{ matrix.os == 'macos-15' }}
run: |
brew install llvm@17
ln -s $(brew --prefix llvm@17)/bin/clang-tidy /usr/local/bin/
brew install pipx
pipx ensurepath
- name: 📥 Install Conan 2.18.0
run: pipx install conan==2.18.0
- name: 🔍 conan version
run: conan --version
- name: 🔍 cmake version
run: cmake --version
- name: 🔍 clang++ version
run: clang++-17 --version || clang++ --version
- name: 🔍 /usr/bin version
run: ls /usr/bin/clang*
- name: 🔍 clang-tidy version
run: clang-tidy-17 --version || clang-tidy --version
- name: 📡 Add `libhal` repo to conan remotes
run: conan remote add libhal
https://libhal.jfrog.io/artifactory/api/conan/trunk-conan
- name: 📡 Create and setup default profile
run: conan profile detect --force
- name: 👁️‍🗨️ Show conan profile (original)
run: conan profile show
- name: 📡 Install default profiles
run: conan config install -sf ${{ matrix.profile_path }} -tf profiles https://github.com/libhal/conan-config.git
- name: 👁️‍🗨️ Show conan profile (new)
run: conan profile show
- name: 🔬 Create & Run Unit Tests
run: VERBOSE=1 conan create . --build=missing -s build_type=MinSizeRel --version="latest"