Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix clang-tidy install in deploy #54

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
if: ${{ inputs.version != '' && inputs.external_package == false}}
Expand All @@ -65,8 +65,20 @@ jobs:
submodules: true
repository: ${{ inputs.repo }}

- name: 📥 Install OS Specific Tools
run: |
sudo apt remove clang-tidy
sudo rm -f /usr/bin/clang-tidy
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt install libc++-17-dev libc++abi-17-dev
sudo apt-get install pipx
pipx ensurepath
sudo apt install clang-tidy-17

- name: 📥 Install Conan ${{ inputs.conan_version }}
run: pip3 install conan==${{ inputs.conan_version }}
run: pipx install conan==${{ inputs.conan_version }}

- name: 📡 Add `libhal` repo to conan remotes
run: conan remote add libhal
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/deploy_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
if: ${{ inputs.version != '' }}
Expand All @@ -47,11 +47,20 @@ jobs:
submodules: true
repository: ${{ inputs.repo }}

- name: 📥 Install Conan ${{ inputs.conan_version }}
run: pip3 install conan==${{ inputs.conan_version }}

- name: 📥 Install OS Specific Tools
run: sudo apt remove clang-tidy && wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 17 && sudo apt install libc++-17-dev libc++abi-17-dev && sudo apt-get install pipx && pipx ensurepath && sudo apt install clang-tidy-17
run: |
sudo apt remove clang-tidy
sudo rm -f /usr/bin/clang-tidy
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17
sudo apt install libc++-17-dev libc++abi-17-dev
sudo apt-get install pipx
pipx ensurepath
sudo apt install clang-tidy-17

- name: 📥 Install Conan ${{ inputs.conan_version }}
run: pipx install conan==${{ inputs.conan_version }}

- name: 📡 Install default linux profiles
run: conan config install -sf profiles/x86_64/linux/ -tf profiles https://github.com/libhal/conan-config.git
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/self_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ jobs:
repo: libhal/libhal-iot
secrets: inherit

deploy-libhal:
uses: ./.github/workflows/deploy.yml
with:
library: libhal
repo: libhal/libhal
arch: x86_64
os: Linux
compiler: gcc
compiler_version: 12.3
compiler_package: ""
secrets: inherit

libhal-arm-mcu-deploy-cortex-m4f:
uses: ./.github/workflows/deploy.yml
with:
Expand Down
Loading