Merge pull request #565 from cgzones/ci_clang12

ci: use clang 12
This commit is contained in:
Nathan Scott 2021-03-18 08:20:17 +11:00 committed by GitHub
commit 1ba3915f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -31,16 +31,16 @@ jobs:
build-ubuntu-latest-minimal-clang: build-ubuntu-latest-minimal-clang:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
CC: clang-11 CC: clang-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install clang repo - name: install clang repo
run: | run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main' -y
sudo apt-get update -q sudo apt-get update -q
- name: Install Dependencies - name: Install Dependencies
run: sudo apt-get install clang-11 libncursesw5-dev run: sudo apt-get install clang-12 libncursesw5-dev
- name: Bootstrap - name: Bootstrap
run: ./autogen.sh run: ./autogen.sh
- name: Configure - name: Configure
@ -72,16 +72,16 @@ jobs:
build-ubuntu-latest-full-featured-clang: build-ubuntu-latest-full-featured-clang:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
CC: clang-11 CC: clang-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install clang repo - name: install clang repo
run: | run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main' -y
sudo apt-get update -q sudo apt-get update -q
- name: Install Dependencies - name: Install Dependencies
run: sudo apt-get install clang-11 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev run: sudo apt-get install clang-12 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
- name: Bootstrap - name: Bootstrap
run: ./autogen.sh run: ./autogen.sh
- name: Configure - name: Configure
@ -113,22 +113,22 @@ jobs:
build-ubuntu-latest-clang-analyzer: build-ubuntu-latest-clang-analyzer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
CC: clang-11 CC: clang-12
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: install clang repo - name: install clang repo
run: | run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key 2>/dev/null | sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main' -y sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main' -y
sudo apt-get update -q sudo apt-get update -q
- name: Install Dependencies - name: Install Dependencies
run: sudo apt-get install clang-11 clang-tools-11 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev run: sudo apt-get install clang-12 clang-tools-12 libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors4-dev libcap-dev
- name: Bootstrap - name: Bootstrap
run: ./autogen.sh run: ./autogen.sh
- name: Configure - name: Configure
run: scan-build-11 -analyze-headers --status-bugs ./configure --enable-debug --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities run: scan-build-12 -analyze-headers --status-bugs ./configure --enable-debug --enable-werror --enable-openvz --enable-vserver --enable-ancient-vserver --enable-unicode --enable-hwloc --enable-delayacct --enable-sensors --enable-capabilities
- name: Build - name: Build
run: scan-build-11 -analyze-headers --status-bugs make -j"$(nproc)" run: scan-build-12 -analyze-headers --status-bugs make -j"$(nproc)"
build-macos-latest-clang: build-macos-latest-clang:
runs-on: macOS-latest runs-on: macOS-latest