Skip to content

Commit

Permalink
[infra/github] Change format check runner (#14062)
Browse files Browse the repository at this point in the history
This commit changes format check runner to ubuntu 24.04.
It supports pre-installed clang-format-16.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Sep 24, 2024
1 parent c6b7add commit 041255b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defaults:
jobs:
check-format:
name: Check format
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
if: github.repository_owner == 'Samsung'

steps:
Expand All @@ -29,15 +29,10 @@ jobs:
with:
python-version: '3.x'

# C format: clang-format-16
# C format: clang-format-16 (already installed)
# Python format: yapf==0.40.2
- name: Install packages
run: |
sudo apt-get install -y gnupg2 software-properties-common
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main"
sudo apt-get update && sudo apt-get install -qqy clang-format-16
python -m pip install --upgrade pip
pip install yapf==0.40.2
- name: Check
Expand Down

0 comments on commit 041255b

Please sign in to comment.