Skip to content

Commit 1f9bb76

Browse files
committed
2 parents ab3303f + 46d4312 commit 1f9bb76

File tree

117 files changed

+2550
-1189
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2550
-1189
lines changed

.clang-format

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Standard: c++20
33
BasedOnStyle: Google
44
ColumnLimit: 120
55
UseTab: Never
6+
AllowShortFunctionsOnASingleLine: Empty
7+
IndentPPDirectives: AfterHash
8+
SortIncludes: true
9+
FixNamespaceComments: true
10+
InsertBraces: true
611
QualifierAlignment: Left
712
PointerAlignment: Right
813
ReferenceAlignment: Right

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ CheckOptions:
8888
- key: readability-identifier-length.MinimumParameterNameLength
8989
value: 1
9090
- key: misc-include-cleaner.IgnoreHeaders
91-
value: '(__chrono/.*|stdlib\.h)'
91+
value: '(__chrono/.*|stdlib\.h|3rdparty/.*)'

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Parallel Programming Course",
3+
"image": "ghcr.io/learning-process/ppc-ubuntu:latest",
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"ms-vscode.cpptools-extension-pack",
8+
"ms-vscode.cmake-tools",
9+
"ms-python.python"
10+
],
11+
"settings": {
12+
"cmake.configureOnOpen": true,
13+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools"
14+
}
15+
}
16+
},
17+
"postCreateCommand": "python3 -m pip install -r requirements.txt"
18+
}
File renamed without changes.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 'Update Pre-commit Hooks'
2+
description: 'Updates pre-commit hook versions and creates a PR if changes are detected'
3+
inputs:
4+
token:
5+
description: 'GitHub token for creating PRs'
6+
required: true
7+
python-version:
8+
description: 'Python version to use'
9+
required: false
10+
default: '3.13'
11+
12+
runs:
13+
using: composite
14+
steps:
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ inputs.python-version }}
19+
- name: Install pre-commit
20+
shell: bash
21+
run: pip install pre-commit
22+
- name: Update pre-commit hooks
23+
shell: bash
24+
run: |
25+
pre-commit autoupdate > /tmp/autoupdate.log 2>&1
26+
cat /tmp/autoupdate.log
27+
- name: Check for changes
28+
id: changes
29+
shell: bash
30+
run: |
31+
if git diff --quiet .pre-commit-config.yaml; then
32+
echo "changed=false" >> $GITHUB_OUTPUT
33+
else
34+
echo "changed=true" >> $GITHUB_OUTPUT
35+
fi
36+
- name: Create Pull Request
37+
if: steps.changes.outputs.changed == 'true'
38+
uses: peter-evans/create-pull-request@v7
39+
with:
40+
token: ${{ inputs.token }}
41+
commit-message: "[pre-commit] Update hooks versions"
42+
title: "[pre-commit] Update hooks versions"
43+
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
44+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
45+
body: |
46+
🤖 This PR was created automatically by the update-pre-commit workflow.
47+
branch: update-pre-commit-hooks
48+
base: master
49+
delete-branch: true
50+
labels: |
51+
dependencies

codecov.yml renamed to .github/codecov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ coverage:
1010
status:
1111
project:
1212
default:
13+
target: auto
1314
threshold: 1%
1415
patch:
1516
default:
17+
target: 95%
1618
threshold: 5%

.github/labeler.yml

Lines changed: 88 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,94 @@
1-
'task:all':
2-
- "tasks/**/all"
3-
'task:mpi':
4-
- "tasks/**/mpi"
5-
'task:omp':
6-
- "tasks/**/omp"
7-
'task:seq':
8-
- "tasks/**/seq"
9-
'task:stl':
10-
- "tasks/**/stl"
11-
'task:tbb':
12-
- "tasks/**/tbb"
1+
"task:all":
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- "tasks/**/all"
5+
6+
"task:mpi":
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- "tasks/**/mpi"
10+
11+
"task:omp":
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- "tasks/**/omp"
15+
16+
"task:seq":
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- "tasks/**/seq"
20+
21+
"task:stl":
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- "tasks/**/stl"
25+
26+
"task:tbb":
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- "tasks/**/tbb"
30+
1331
task:
14-
- "tasks/**"
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "tasks/**"
35+
1536
ci:
16-
- ".github/**"
17-
- "appveyor.yml"
18-
'modules:performance':
19-
- "modules/performance/**"
20-
'modules:runners':
21-
- "modules/runners/**"
22-
'modules:task':
23-
- "modules/task/**"
24-
'modules:util':
25-
- "modules/util/**"
26-
3rdparty:
27-
- "3rdparty/**"
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- ".github/**"
40+
- "appveyor.yml"
41+
42+
"modules:performance":
43+
- changed-files:
44+
- any-glob-to-any-file:
45+
- "modules/performance/**"
46+
47+
"modules:runners":
48+
- changed-files:
49+
- any-glob-to-any-file:
50+
- "modules/runners/**"
51+
52+
"modules:task":
53+
- changed-files:
54+
- any-glob-to-any-file:
55+
- "modules/task/**"
56+
57+
"modules:util":
58+
- changed-files:
59+
- any-glob-to-any-file:
60+
- "modules/util/**"
61+
62+
"3rdparty":
63+
- changed-files:
64+
- any-glob-to-any-file:
65+
- "3rdparty/**"
66+
2867
infrastructure:
29-
- "scripts/**"
30-
- "**/CMakeLists.txt"
31-
- "cmake/**"
32-
- ".clang-format"
33-
- ".clang-tidy"
34-
- ".gitignore"
35-
- ".gitmodules"
36-
- "codecov.yml"
37-
- "setup.cfg"
68+
- changed-files:
69+
- any-glob-to-any-file:
70+
- "scripts/**"
71+
- "**/CMakeLists.txt"
72+
- "cmake/**"
73+
- ".clang-format"
74+
- ".clang-tidy"
75+
- ".gitignore"
76+
- ".gitmodules"
77+
- "codecov.yml"
78+
- "setup.cfg"
79+
3880
python:
39-
- "**/requirements.txt"
81+
- changed-files:
82+
- any-glob-to-any-file:
83+
- "**/requirements.txt"
84+
4085
docs:
41-
- "docs/**"
42-
- "README.md"
86+
- changed-files:
87+
- any-glob-to-any-file:
88+
- "docs/**"
89+
- "README.md"
90+
4391
scoreboard:
44-
- "scoreboard/**"
92+
- changed-files:
93+
- any-glob-to-any-file:
94+
- "scoreboard/**"

.github/workflows/cmake-lint.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
matrix:
1919
language:
2020
- cpp
21+
- python
2122
steps:
2223
- uses: actions/checkout@v4
2324
with:
@@ -38,6 +39,7 @@ jobs:
3839
with:
3940
languages: ${{ matrix.language }}
4041
- name: CMake configure
42+
if: matrix.language == 'cpp'
4143
run: >
4244
cmake -S . -B build -G Ninja
4345
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
@@ -46,6 +48,7 @@ jobs:
4648
CC: gcc-14
4749
CXX: g++-14
4850
- name: Build project
51+
if: matrix.language == 'cpp'
4952
run: |
5053
cmake --build build --parallel
5154
env:

.github/workflows/docker.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ on:
44
- master
55
paths:
66
- 'docker/**'
7-
pull_request_target:
7+
- '.github/workflows/docker.yml'
8+
pull_request:
89
paths:
910
- 'docker/**'
11+
- '.github/workflows/docker.yml'
12+
workflow_dispatch:
1013

1114
permissions:
1215
contents: read
@@ -19,28 +22,29 @@ jobs:
1922

2023
steps:
2124
- name: Check out code
22-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2326

2427
- name: Set up QEMU
25-
uses: docker/setup-qemu-action@v2
28+
uses: docker/setup-qemu-action@v3
2629
with:
2730
platforms: linux/amd64,linux/arm64
2831

2932
- name: Set up Docker Buildx
30-
uses: docker/setup-buildx-action@v2
33+
uses: docker/setup-buildx-action@v3
3134

3235
- name: Log in to GHCR
33-
uses: docker/login-action@v2
36+
if: github.event_name == 'push'
37+
uses: docker/login-action@v3
3438
with:
3539
registry: ghcr.io
3640
username: ${{ github.actor }}
3741
password: ${{ secrets.DOCKER_TOKEN }}
3842

3943
- name: Build and push multi-arch image
40-
uses: docker/build-push-action@v4
44+
uses: docker/build-push-action@v6
4145
with:
4246
context: .
4347
file: ./docker/ubuntu.Dockerfile
4448
platforms: linux/amd64,linux/arm64
45-
push: true # ${{ github.ref == 'refs/heads/master' }}
49+
push: ${{ github.ref == 'refs/heads/master' }}
4650
tags: ghcr.io/learning-process/ppc-ubuntu:latest

0 commit comments

Comments
 (0)