[github][ci] use apt-get to fetch clang to remove a warning

This commit is contained in:
Travis Geiselbrecht
2024-11-07 08:20:53 +00:00
parent 4102844048
commit d1579678ab

View File

@@ -44,7 +44,7 @@ jobs:
- name: compute toolchain - name: compute toolchain
shell: bash shell: bash
run: | run: |
sudo apt install clang-${{ matrix.toolchain-ver }} lld-${{ matrix.toolchain-ver }} sudo apt-get install -y clang-${{ matrix.toolchain-ver }} lld-${{ matrix.toolchain-ver }}
GCC_TOOLCHAIN_PREFIX=$(make list-toolchain | grep TOOLCHAIN_PREFIX | tail -1 | cut -d ' ' -f 3) GCC_TOOLCHAIN_PREFIX=$(make list-toolchain | grep TOOLCHAIN_PREFIX | tail -1 | cut -d ' ' -f 3)
# Map the GCC toolchain prefix to a clang --target argument: # Map the GCC toolchain prefix to a clang --target argument:
CLANG_TRIPLE=$(echo "${GCC_TOOLCHAIN_PREFIX}" | sed 's/-elf-/-unknown-elf/g') CLANG_TRIPLE=$(echo "${GCC_TOOLCHAIN_PREFIX}" | sed 's/-elf-/-unknown-elf/g')
@@ -72,7 +72,7 @@ jobs:
if: ${{ matrix.project == 'qemu-virt-arm64-test' }} if: ${{ matrix.project == 'qemu-virt-arm64-test' }}
shell: bash shell: bash
run: | run: |
env -i DEBIAN_FRONTEND=noninteractive sudo apt install -y qemu-system-arm env -i DEBIAN_FRONTEND=noninteractive sudo apt-get install -y qemu-system-arm
- name: unittest - name: unittest
if: ${{ matrix.project == 'qemu-virt-arm64-test' }} if: ${{ matrix.project == 'qemu-virt-arm64-test' }}
shell: bash shell: bash