Skip to content

Commit e9e63da

Browse files
authored
Use ubuntu-24.04 for linter (#142)
Signed-off-by: Bala.FA <bala@minio.io>
1 parent 046a41e commit e9e63da

File tree

2 files changed

+47
-33
lines changed

2 files changed

+47
-33
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,6 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
coding-style:
20-
name: "Coding Style & Version Check"
21-
runs-on: ubuntu-latest
22-
23-
steps:
24-
- name: Checkout minio-cpp
25-
uses: actions/checkout@v4
26-
with:
27-
path: "minio-cpp"
28-
29-
- name: "Python"
30-
uses: actions/setup-python@v5
31-
with:
32-
python-version: "3.x"
33-
34-
- name: Install dependencies if Ubuntu
35-
run: |
36-
wget --quiet -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
37-
echo 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main' | sudo tee -a /etc/apt/sources.list
38-
sudo apt-get -qy update
39-
sudo apt-get -qy install clang-format-18
40-
clang-format-18 --version
41-
42-
- name: Version Check
43-
shell: bash
44-
working-directory: minio-cpp
45-
run: python check-version.py
46-
47-
- name: Coding Style Check
48-
shell: bash
49-
working-directory: minio-cpp
50-
run: CLANG_FORMAT=clang-format-18 ./check-style.sh
51-
5219
build:
5320
strategy:
5421
fail-fast: false

.github/workflows/linters.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Linters
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
# This ensures that previous jobs for the PR are canceled when the PR is
10+
# updated.
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
coding-style:
20+
name: "Coding Style & Version Check"
21+
runs-on: ubuntu-24.04
22+
23+
steps:
24+
- name: Checkout minio-cpp
25+
uses: actions/checkout@v4
26+
with:
27+
path: "minio-cpp"
28+
29+
- name: "Python"
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.x"
33+
34+
- name: Install dependencies
35+
run: |
36+
sudo apt -qy install clang-format-18
37+
clang-format-18 --version
38+
39+
- name: Version Check
40+
shell: bash
41+
working-directory: minio-cpp
42+
run: python check-version.py
43+
44+
- name: Coding Style Check
45+
shell: bash
46+
working-directory: minio-cpp
47+
run: CLANG_FORMAT=clang-format-18 ./check-style.sh

0 commit comments

Comments
 (0)