Skip to content

Commit

Permalink
[internal] changed ubuntu version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannespetur committed Sep 28, 2021
1 parent 0c1d0e1 commit 0215f90
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/clang-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ defaults:
jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-20.04
runs-on: ubuntu-18.04
timeout-minutes: 120
strategy:
fail-fast: true
matrix:
include:
- name: "Clang12 Release C++20"
pkg: "clang-12"
format: "clang-format-12"
cxx: "clang++-12"
cc: "clang-12"
cxx_flags: "-std=c++20"
Expand All @@ -35,18 +36,23 @@ jobs:
- name: Add package source
run: |
echo 'APT::Acquire::Retries "5";' | sudo tee -a /etc/apt/apt.conf.d/80-retries > /dev/null
sudo add-apt-repository --no-update --yes "deb http://apt.llvm.org/focal/ llvm-toolchain-focal main"
sudo add-apt-repository --no-update --yes ppa:ubuntu-toolchain-r/ppa
sudo add-apt-repository --no-update --yes ppa:ubuntu-toolchain-r/test
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository --no-update --yes "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main"
sudo apt-get update
- name: Install CMake
run: sudo apt-get install --yes cmake

- name: Install clang-format
run: sudo apt-get install --yes ${{ matrix.pkg }}
run: sudo apt-get install --yes ${{ matrix.pkg }} ${{ matrix.format }}

- name: Tool versions
run: |
env cmake --version
env ${{ matrix.cxx }} --version
env ${{ matrix.format }} --version
- name: Configure tests
env:
CXX: ${{ matrix.cxx }}
Expand Down

0 comments on commit 0215f90

Please sign in to comment.