Skip to content

Commit e7ca318

Browse files
lrvideckisweb-flow
andauthored
Consolidate yml (#208)
* consolidated * trying this * [auto-verifier] verify commit 93585d0 * fix * fix test now * [auto-verifier] verify commit e56bd2f * fix * add shell --------- Co-authored-by: GitHub <noreply@github.com>
1 parent 17e26b0 commit e7ca318

5 files changed

Lines changed: 25 additions & 55 deletions

File tree

.github/actions/setup/action.yml

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

.github/workflows/programming_team_code_ci.yml

Lines changed: 7 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,17 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v4
38-
- name: Install LLVM
39-
run: |
40-
wget https://apt.llvm.org/llvm.sh
41-
chmod +x llvm.sh
42-
sudo ./llvm.sh 22
38+
- uses: ./.github/actions/setup
4339
- name: Install dependencies
44-
run: sudo apt install -y clang-format-22 cppcheck
45-
- name: Verify
46-
run: |
47-
clang-22 --version
48-
clang-format-22 --version
40+
run: sudo apt install -y cppcheck
4941
- name: grep, clang-format, cppcheck
5042
run: make --directory=tests/ grep_clangformat_cppcheck
5143

5244
clangtidy:
5345
runs-on: ubuntu-latest
5446
steps:
5547
- uses: actions/checkout@v4
56-
- name: Install LLVM
57-
run: |
58-
wget https://apt.llvm.org/llvm.sh
59-
chmod +x llvm.sh
60-
sudo ./llvm.sh 22
61-
- name: Install dependencies
62-
run: sudo apt install -y clang-tidy-22
63-
- name: Verify
64-
run: |
65-
clang-22 --version
66-
clang-tidy-22 --version
48+
- uses: ./.github/actions/setup
6749
- name: clang-tidy
6850
run: make --directory=tests/ clangtidy
6951

@@ -78,14 +60,7 @@ jobs:
7860
runs-on: ubuntu-latest
7961
steps:
8062
- uses: actions/checkout@v4
81-
- name: Install LLVM
82-
run: |
83-
wget https://apt.llvm.org/llvm.sh
84-
chmod +x llvm.sh
85-
sudo ./llvm.sh 22
86-
- name: Verify
87-
run: |
88-
clang-22 --version
63+
- uses: ./.github/actions/setup
8964
- name: g++ with clang
9065
run: make --directory=tests/ compile_clang
9166

@@ -100,17 +75,9 @@ jobs:
10075
runs-on: ubuntu-latest
10176
steps:
10277
- uses: actions/checkout@v4
78+
- uses: ./.github/actions/setup
10379
- name: Install texlive, rename, nodejs, npm
104-
run: |
105-
sudo apt install texlive texlive-latex-extra rename nodejs npm
106-
- name: Install LLVM
107-
run: |
108-
wget https://apt.llvm.org/llvm.sh
109-
chmod +x llvm.sh
110-
sudo ./llvm.sh 22
111-
- name: Verify
112-
run: |
113-
clang-22 --version
80+
run: sudo apt install texlive texlive-latex-extra rename nodejs npm
11481
- name: build pdf
11582
run: make --directory=tests/ build_pdf
11683
- uses: actions/upload-artifact@v4
@@ -142,17 +109,7 @@ jobs:
142109
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
143110
steps:
144111
- uses: actions/checkout@v4
145-
- name: Install LLVM
146-
run: |
147-
wget https://apt.llvm.org/llvm.sh
148-
chmod +x llvm.sh
149-
sudo ./llvm.sh 22
150-
- name: Install dependencies
151-
run: sudo apt install -y clang-format-22 cppcheck
152-
- name: Verify
153-
run: |
154-
clang-22 --version
155-
clang-format-22 --version
112+
- uses: ./.github/actions/setup
156113
- name: Combine includes and force push to main branch
157114
run: |
158115
git config --local user.name github-actions

.verify-helper/timestamps.remote.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tests/library_checker_aizu_tests/convolution/xor_convolution.test.cpp": "2026-03-06 12:17:28 -0700",
66
"tests/library_checker_aizu_tests/data_structures/binary_search_example.test.cpp": "2024-11-18 10:51:39 -0600",
77
"tests/library_checker_aizu_tests/data_structures/binary_trie.test.cpp": "2026-01-18 02:20:40 +0000",
8-
"tests/library_checker_aizu_tests/data_structures/bit.test.cpp": "2026-04-06 12:17:32 -0600",
8+
"tests/library_checker_aizu_tests/data_structures/bit.test.cpp": "2026-04-12 11:07:55 -0600",
99
"tests/library_checker_aizu_tests/data_structures/bit_inc.test.cpp": "2026-04-06 12:17:32 -0600",
1010
"tests/library_checker_aizu_tests/data_structures/bit_inc_walk.test.cpp": "2026-04-06 12:17:32 -0600",
1111
"tests/library_checker_aizu_tests/data_structures/bit_ordered_set.test.cpp": "2026-04-06 12:17:32 -0600",
@@ -147,5 +147,4 @@
147147
"tests/library_checker_aizu_tests/trees/lca_all_methods_aizu.test.cpp": "2026-04-06 14:41:55 -0600",
148148
"tests/library_checker_aizu_tests/trees/lca_all_methods_lib_checker.test.cpp": "2026-04-06 14:41:55 -0600",
149149
"tests/library_checker_aizu_tests/trees/shallowest_aizu_tree_height.test.cpp": "2026-04-12 10:51:29 -0600",
150-
"tests/library_checker_aizu_tests/trees/subtree_isomorphism.test.cpp": "2026-04-06 14:41:55 -0600"
151150
}

tests/library_checker_aizu_tests/data_structures/bit.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int main() {
4848
assert(res == bit_rr.query(l, r));
4949
cout << res << '\n';
5050
}
51-
auto sum = rnd<ll>(0LL, (ll)(1e12));
51+
auto sum = rnd<ll>(0LL, (ll)1e12);
5252
auto need = sum;
5353
auto f = [&](ll x, int tl, int tr) -> bool {
5454
assert(tl <= tr);

tests/library_checker_aizu_tests/trees/shallowest_lib_checker_tree_path_composite.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ int main() {
8787
for (int v : adj[cent]) {
8888
for (int i = 0; i < ssize(adj[v]); i++) {
8989
if (adj[v][i] == cent) {
90-
swap(weight[v][i], weight[v].back());
91-
weight[v].pop_back();
90+
weight[v].erase(begin(weight[v]) + i);
9291
break;
9392
}
9493
}

0 commit comments

Comments
 (0)