install latest clang from `apt.llvm.org` repo instead of relying on distro packages - eliminates need for docker images (#4372)
This commit is contained in:
parent
0cf174e18f
commit
19e9712762
|
@ -9,9 +9,6 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
container:
|
|
||||||
image: "ubuntu:22.04"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ASAN_OPTIONS: detect_stack_use_after_return=1
|
ASAN_OPTIONS: detect_stack_use_after_return=1
|
||||||
|
|
||||||
|
@ -25,9 +22,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y cmake make libpcre3-dev
|
sudo apt-get install -y cmake make libpcre3-dev
|
||||||
apt-get install -y clang-14
|
|
||||||
|
- name: Install clang
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x llvm.sh
|
||||||
|
sudo ./llvm.sh 14
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -9,9 +9,6 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
container:
|
|
||||||
image: "ubuntu:22.04"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
QT_VERSION: 5.15.2
|
QT_VERSION: 5.15.2
|
||||||
|
|
||||||
|
@ -20,11 +17,16 @@ jobs:
|
||||||
|
|
||||||
- name: Install missing software
|
- name: Install missing software
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y cmake clang-14 make
|
sudo apt-get install -y cmake make
|
||||||
apt-get install -y libpcre3-dev
|
sudo apt-get install -y libpcre3-dev
|
||||||
apt-get install -y libffi7 # work around missing dependency for Qt install step
|
sudo apt-get install -y libffi7 # work around missing dependency for Qt install step
|
||||||
apt-get install -y clang-tidy-14
|
|
||||||
|
- name: Install clang
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x llvm.sh
|
||||||
|
sudo ./llvm.sh 14
|
||||||
|
|
||||||
- name: Cache Qt ${{ env.QT_VERSION }}
|
- name: Cache Qt ${{ env.QT_VERSION }}
|
||||||
id: cache-qt
|
id: cache-qt
|
||||||
|
@ -36,7 +38,6 @@ jobs:
|
||||||
- name: Install Qt ${{ env.QT_VERSION }}
|
- name: Install Qt ${{ env.QT_VERSION }}
|
||||||
uses: jurplel/install-qt-action@v2
|
uses: jurplel/install-qt-action@v2
|
||||||
with:
|
with:
|
||||||
install-deps: 'nosudo'
|
|
||||||
version: ${{ env.QT_VERSION }}
|
version: ${{ env.QT_VERSION }}
|
||||||
modules: 'qtcharts'
|
modules: 'qtcharts'
|
||||||
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
cached: ${{ steps.cache-qt.outputs.cache-hit }}
|
||||||
|
|
|
@ -12,9 +12,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TSAN_OPTIONS: halt_on_error=1
|
TSAN_OPTIONS: halt_on_error=1
|
||||||
|
|
||||||
container:
|
|
||||||
image: "ubuntu:22.04"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -25,9 +22,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y cmake make libpcre3-dev
|
sudo apt-get install -y cmake make libpcre3-dev
|
||||||
apt-get install -y clang-14
|
|
||||||
|
- name: Install clang
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x llvm.sh
|
||||||
|
sudo ./llvm.sh 14
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -9,9 +9,6 @@ jobs:
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
container:
|
|
||||||
image: "ubuntu:22.04"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
|
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
|
||||||
|
|
||||||
|
@ -25,9 +22,14 @@ jobs:
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
sudo apt-get update
|
||||||
apt-get install -y cmake make libpcre3-dev
|
sudo apt-get install -y cmake make libpcre3-dev
|
||||||
apt-get install -y clang-14
|
|
||||||
|
- name: Install clang
|
||||||
|
run: |
|
||||||
|
wget https://apt.llvm.org/llvm.sh
|
||||||
|
chmod +x llvm.sh
|
||||||
|
sudo ./llvm.sh 14
|
||||||
|
|
||||||
- name: CMake
|
- name: CMake
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue