Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Install LLVM'
runs:
using: "composite"
steps:
- name: Install LLVM
shell: bash
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
sudo apt-get update
sudo apt-get install -y clang-format-22 clang-tidy-22
clang-22 --version
clang-format-22 --version
clang-tidy-22 --version
57 changes: 7 additions & 50 deletions .github/workflows/programming_team_code_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
- uses: ./.github/actions/setup
- name: Install dependencies
run: sudo apt install -y clang-format-22 cppcheck
- name: Verify
run: |
clang-22 --version
clang-format-22 --version
run: sudo apt install -y cppcheck
- name: grep, clang-format, cppcheck
run: make --directory=tests/ grep_clangformat_cppcheck

clangtidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
- name: Install dependencies
run: sudo apt install -y clang-tidy-22
- name: Verify
run: |
clang-22 --version
clang-tidy-22 --version
- uses: ./.github/actions/setup
- name: clang-tidy
run: make --directory=tests/ clangtidy

Expand All @@ -78,14 +60,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
- name: Verify
run: |
clang-22 --version
- uses: ./.github/actions/setup
- name: g++ with clang
run: make --directory=tests/ compile_clang

Expand All @@ -100,17 +75,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Install texlive, rename, nodejs, npm
run: |
sudo apt install texlive texlive-latex-extra rename nodejs npm
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
- name: Verify
run: |
clang-22 --version
run: sudo apt install texlive texlive-latex-extra rename nodejs npm
- name: build pdf
run: make --directory=tests/ build_pdf
- uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -142,17 +109,7 @@ jobs:
if: github.ref == 'refs/heads/dev' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 22
- name: Install dependencies
run: sudo apt install -y clang-format-22 cppcheck
- name: Verify
run: |
clang-22 --version
clang-format-22 --version
- uses: ./.github/actions/setup
- name: Combine includes and force push to main branch
run: |
git config --local user.name github-actions
Expand Down
3 changes: 1 addition & 2 deletions .verify-helper/timestamps.remote.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tests/library_checker_aizu_tests/convolution/xor_convolution.test.cpp": "2026-03-06 12:17:28 -0700",
"tests/library_checker_aizu_tests/data_structures/binary_search_example.test.cpp": "2024-11-18 10:51:39 -0600",
"tests/library_checker_aizu_tests/data_structures/binary_trie.test.cpp": "2026-01-18 02:20:40 +0000",
"tests/library_checker_aizu_tests/data_structures/bit.test.cpp": "2026-04-06 12:17:32 -0600",
"tests/library_checker_aizu_tests/data_structures/bit.test.cpp": "2026-04-12 11:07:55 -0600",
"tests/library_checker_aizu_tests/data_structures/bit_inc.test.cpp": "2026-04-06 12:17:32 -0600",
"tests/library_checker_aizu_tests/data_structures/bit_inc_walk.test.cpp": "2026-04-06 12:17:32 -0600",
"tests/library_checker_aizu_tests/data_structures/bit_ordered_set.test.cpp": "2026-04-06 12:17:32 -0600",
Expand Down Expand Up @@ -147,5 +147,4 @@
"tests/library_checker_aizu_tests/trees/lca_all_methods_aizu.test.cpp": "2026-04-06 14:41:55 -0600",
"tests/library_checker_aizu_tests/trees/lca_all_methods_lib_checker.test.cpp": "2026-04-06 14:41:55 -0600",
"tests/library_checker_aizu_tests/trees/shallowest_aizu_tree_height.test.cpp": "2026-04-12 10:51:29 -0600",
"tests/library_checker_aizu_tests/trees/subtree_isomorphism.test.cpp": "2026-04-06 14:41:55 -0600"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main() {
assert(res == bit_rr.query(l, r));
cout << res << '\n';
}
auto sum = rnd<ll>(0LL, (ll)(1e12));
auto sum = rnd<ll>(0LL, (ll)1e12);
auto need = sum;
auto f = [&](ll x, int tl, int tr) -> bool {
assert(tl <= tr);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ int main() {
for (int v : adj[cent]) {
for (int i = 0; i < ssize(adj[v]); i++) {
if (adj[v][i] == cent) {
swap(weight[v][i], weight[v].back());
weight[v].pop_back();
weight[v].erase(begin(weight[v]) + i);
break;
}
}
Expand Down
Loading