Skip to content

Commit b41d0a9

Browse files
docs: update README, create submodules
1 parent 03508a4 commit b41d0a9

File tree

7 files changed

+102
-2
lines changed

7 files changed

+102
-2
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Update Submodules
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 6 * * 1' # run every Monday at 6AM UTC
7+
push:
8+
9+
jobs:
10+
update-submodules:
11+
runs-on: self-hosted
12+
13+
steps:
14+
- name: Checkout repository (with submodules)
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
submodules: recursive
19+
20+
- name: Update submodules
21+
run: |
22+
git submodule update --remote --merge --recursive
23+
24+
- name: Check for submodule changes
25+
run: |
26+
if ! git diff --quiet; then
27+
echo "Submodule changes detected."
28+
echo "changes=true" >> $GITHUB_ENV
29+
else
30+
echo "No submodule changes detected."
31+
fi
32+
33+
- name: Commit and push updates
34+
if: env.changes == 'true'
35+
run: |
36+
git config user.name "github-actions[bot]"
37+
git config user.email "github-actions[bot]@users.noreply.github.com"
38+
git add projects/*
39+
git commit -m "chore(submodules): update [skip ci]"
40+
git push origin HEAD:main

.gitmodules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[submodule "projects/AmperePerformanceToolkit"]
2+
path = projects/AmperePerformanceToolkit
3+
url = https://github.com/AmpereComputing/AmperePerformanceToolkit.git
4+
branch = main
5+
[submodule "projects/ampere-pmu-profiler"]
6+
path = projects/ampere-pmu-profiler
7+
url = https://github.com/AmpereComputing/ampere-pmu-profiler.git
8+
branch = main
9+
[submodule "projects/ampere-porting-advisor"]
10+
path = projects/ampere-porting-advisor
11+
url = https://github.com/AmpereComputing/ampere-porting-advisor.git
12+
branch = main

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2025 Ampere Computing LLC
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
3. Neither the name of the copyright holder nor the names of its
16+
contributors may be used to endorse or promote products derived from
17+
this software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,19 @@
1-
# ampere-performance-toolkit
2-
Umbrella project that unifies Ampere-built tools for performance benchmarking, hardware/software profiling, and porting.
1+
![Ampere Logo](https://ampereaimodelzoo.s3.eu-central-1.amazonaws.com/ampere_logo_®_primary_stacked_rgb.png "Ampere Logo")
2+
# Ampere Performance Toolkit
3+
4+
[![Update Submodules](https://github.com/AmpereComputing/ampere-performance-toolkit/actions/workflows/update-submodules.yml/badge.svg)](https://github.com/AmpereComputing/ampere-performance-toolkit/actions/workflows/update-submodules.yml) [![License](https://img.shields.io/badge/License-BSD--3-blue)](https://github.com/AmpereComputing/ampere-performance-toolkit/blob/main/LICENSE)
5+
6+
Umbrella project with Ampere-built tools for performance benchmarking, hardware/software profiling, and porting.
7+
8+
To clone all submodules under `projects/`
9+
10+
```bash
11+
git clone --recurse-submodules https://github.com/AmpereComputing/ampere-performance-toolkit.git
12+
```
13+
14+
A workflow in GitHub CI (self-hosted runner) updates submodules every Monday at 6AM UTC.
15+
16+
## Contributions
17+
18+
Contributions are welcome, please submit them to the relevant submodule's main repository (conforming to each project's CONTRIBUTING guide).
19+

projects/AmperePerformanceToolkit

projects/ampere-pmu-profiler

Submodule ampere-pmu-profiler added at 6d9d988

projects/ampere-porting-advisor

Submodule ampere-porting-advisor added at 510aa13

0 commit comments

Comments
 (0)