Skip to content

Commit d0c8781

Browse files
authored
Trivial changes to GH actions (#265)
* Remove cppcheck GH job * Improve build and reports artifact naming for better GitHub UI sorting Change artifact names to lead with category in brackets for better organization: - 'test-platform (java, config) (reports)' → '[reports] test-platform (java, config)' - 'test-platform (java, config) (build)' → '[build] test-platform (java, config)' Leave failures artifacts unchanged as they may be used downstream. This groups build and reports artifacts by type in the GitHub UI. * Update IBM Java 8 URL
1 parent ecb9ee6 commit d0c8781

File tree

3 files changed

+9
-50
lines changed

3 files changed

+9
-50
lines changed

.github/workflows/cache_java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env:
3434
# jdk1.8.0_361
3535
JAVA_8_ORACLE_URL: "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=247926_0ae14417abb444ebb02b9815e2103550"
3636

37-
JAVA_8_IBM_URL: "https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.8.40/linux/x86_64/ibm-java-jre-8.0-8.40-linux-x86_64.tgz"
37+
JAVA_8_IBM_URL: "https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.8.50/linux/x86_64/ibm-java-jre-8.0-8.50-linux-x86_64.tgz"
3838

3939
JAVA_8_ZING_URL : "https://cdn.azul.com/zing-zvm/ZVM23.05.0.0/zing23.05.0.0-2-jdk8.0.372-linux_x64.tar.gz"
4040
JAVA_8_ZING_AARCH64_URL : "https://cdn.azul.com/zing-zvm/ZVM24.10.0.0/zing24.10.0.0-4-jdk8.0.431-linux_aarch64.tar.gz"

.github/workflows/codecheck.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -53,47 +53,6 @@ jobs:
5353
with:
5454
body-file: comment.html
5555

56-
cppcheck:
57-
if: needs.check-for-pr.outputs.skip != 'true'
58-
runs-on: ubuntu-latest
59-
env:
60-
HEAD_REF: ${{ github.head_ref }}
61-
steps:
62-
- uses: actions/checkout@v3
63-
- name: System setup
64-
run: |
65-
sudo apt-get update
66-
sudo apt install -y cppcheck xsltproc
67-
- name: Set up Python
68-
uses: actions/setup-python@v2
69-
with:
70-
python-version: 3.9
71-
- name: Install Python dependencies
72-
run: |
73-
python -m pip install --upgrade pip
74-
pip install beautifulsoup4
75-
- name: Run Cppcheck
76-
id: run-cppcheck
77-
run: |
78-
cppcheck --quiet --force --enable=all --std=c++17 --language=c++ --inline-suppr --suppressions-list=.github/scripts/cppcheck-suppressions.txt --xml --output-file=report.xml ddprof-lib/src/main/cpp/*
79-
xsltproc --output report.html .github/scripts/cppcheck-html.xslt report.xml
80-
xsltproc --output report-gh.html .github/scripts/cppcheck-gh.xslt report.xml
81-
sed -i "s#target_branch#${HEAD_REF}#g" report.html
82-
sed -i "s#target_branch#${HEAD_REF}#g" report-gh.html
83-
python .github/scripts/python_utils.py cppcheck_cleanup report-gh.html >> comment.html
84-
- name: Upload logs
85-
uses: actions/upload-artifact@v4
86-
if: always()
87-
with:
88-
name: cppcheck-report
89-
path: |
90-
report.html
91-
report.xml
92-
- name: Comment on PR
93-
uses: ./.github/actions/upsert-pr-comment
94-
with:
95-
body-file: comment.html
96-
9756
codeql:
9857
if: needs.check-for-pr.outputs.skip != 'true'
9958
runs-on: ubuntu-latest

.github/workflows/test_workflow.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- uses: actions/upload-artifact@v4
104104
if: success()
105105
with:
106-
name: test-linux-glibc-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})] (build)
106+
name: (build) test-linux-glibc-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})
107107
path: build/
108108
- uses: actions/upload-artifact@v4
109109
if: failure()
@@ -117,7 +117,7 @@ jobs:
117117
- uses: actions/upload-artifact@v4
118118
if: failure()
119119
with:
120-
name: test-linux-glibc-amd64 (${{ matrix.java_version }}, ${{ matrix.config }}) (reports)
120+
name: (reports) test-linux-glibc-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})
121121
path: reports
122122

123123
test-linux-musl-amd64:
@@ -206,7 +206,7 @@ jobs:
206206
- uses: actions/upload-artifact@v4
207207
if: success()
208208
with:
209-
name: test-linux-musl-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})] (build)
209+
name: (build) test-linux-musl-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})
210210
path: build/
211211
- uses: actions/upload-artifact@v4
212212
if: failure()
@@ -220,7 +220,7 @@ jobs:
220220
- uses: actions/upload-artifact@v4
221221
if: failure()
222222
with:
223-
name: test-linux-musl-amd64 (${{ matrix.java_version }}, ${{ matrix.config }}) (reports)
223+
name: (reports) test-linux-musl-amd64 (${{ matrix.java_version }}, ${{ matrix.config }})
224224
path: reports
225225

226226
test-linux-glibc-aarch64:
@@ -317,7 +317,7 @@ jobs:
317317
- uses: actions/upload-artifact@v4
318318
if: success()
319319
with:
320-
name: test-linux-glibc-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})] (build)
320+
name: (build) test-linux-glibc-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})
321321
path: build/
322322
- uses: actions/upload-artifact@v4
323323
if: failure()
@@ -331,7 +331,7 @@ jobs:
331331
- uses: actions/upload-artifact@v4
332332
if: failure()
333333
with:
334-
name: test-linux-glibc-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }}) (reports)
334+
name: (reports) test-linux-glibc-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})
335335
path: reports
336336

337337
test-linux-musl-aarch64:
@@ -397,7 +397,7 @@ jobs:
397397
- uses: actions/upload-artifact@v4
398398
if: success()
399399
with:
400-
name: test-linux-musl-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})] (build)
400+
name: (build) test-linux-musl-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})
401401
path: build/
402402
- uses: actions/upload-artifact@v4
403403
if: failure()
@@ -411,5 +411,5 @@ jobs:
411411
- uses: actions/upload-artifact@v4
412412
if: failure()
413413
with:
414-
name: test-linux-musl-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }}) (reports)
414+
name: (reports) test-linux-musl-aarch64 (${{ matrix.java_version }}, ${{ matrix.config }})
415415
path: reports

0 commit comments

Comments
 (0)