Skip to content

Commit 93585d0

Browse files
committed
trying this
1 parent 9d90088 commit 93585d0

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Install LLVM
2+
runs:
3+
using: "composite"
4+
steps:
5+
- uses: actions/checkout@v4
6+
- run: |
7+
wget https://apt.llvm.org/llvm.sh
8+
chmod +x llvm.sh
9+
sudo ./llvm.sh 22
10+
sudo apt-get update
11+
sudo apt-get install -y clang-format-22 clang-tidy-22
12+
clang-22 --version
13+
clang-format-22 --version
14+
clang-tidy-22 --version

.github/workflows/programming_team_code_ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ on: push
55
permissions:
66
contents: write
77

8-
x-llvm-install: &llvm-install
9-
name: Install LLVM
10-
run: |
11-
wget https://apt.llvm.org/llvm.sh
12-
chmod +x llvm.sh
13-
sudo ./llvm.sh 22
14-
sudo apt-get update
15-
sudo apt-get install -y clang-format-22 clang-tidy-22
16-
clang-22 --version
17-
clang-format-22 --version
18-
clang-tidy-22 --version
19-
208
jobs:
219
library_checker_aizu:
2210
runs-on: ubuntu-latest
@@ -47,7 +35,7 @@ jobs:
4735
runs-on: ubuntu-latest
4836
steps:
4937
- uses: actions/checkout@v4
50-
- *llvm-install
38+
- uses: ./.github/actions/setup
5139
- name: Install dependencies
5240
run: sudo apt install -y cppcheck
5341
- name: grep, clang-format, cppcheck
@@ -57,7 +45,7 @@ jobs:
5745
runs-on: ubuntu-latest
5846
steps:
5947
- uses: actions/checkout@v4
60-
- *llvm-install
48+
- uses: ./.github/actions/setup
6149
- name: clang-tidy
6250
run: make --directory=tests/ clangtidy
6351

@@ -72,7 +60,7 @@ jobs:
7260
runs-on: ubuntu-latest
7361
steps:
7462
- uses: actions/checkout@v4
75-
- *llvm-install
63+
- uses: ./.github/actions/setup
7664
- name: g++ with clang
7765
run: make --directory=tests/ compile_clang
7866

@@ -87,7 +75,7 @@ jobs:
8775
runs-on: ubuntu-latest
8876
steps:
8977
- uses: actions/checkout@v4
90-
- *llvm-install
78+
- uses: ./.github/actions/setup
9179
- name: Install texlive, rename, nodejs, npm
9280
run: sudo apt install texlive texlive-latex-extra rename nodejs npm
9381
- name: build pdf
@@ -121,7 +109,7 @@ jobs:
121109
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
122110
steps:
123111
- uses: actions/checkout@v4
124-
- *llvm-install
112+
- uses: ./.github/actions/setup
125113
- name: Combine includes and force push to main branch
126114
run: |
127115
git config --local user.name github-actions

0 commit comments

Comments
 (0)