Skip to content

Commit 6319589

Browse files
Changes for PowerAPI monitoring
1 parent 661ec72 commit 6319589

File tree

3 files changed

+125
-133
lines changed

3 files changed

+125
-133
lines changed

.github/workflows/builds.yml

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,50 @@
1-
name: Build Check
2-
3-
on:
4-
schedule:
5-
- cron: '0 12 * * *'
6-
71
jobs:
82
RunOnLinux:
9-
runs-on: ubuntu-latest
3+
runs-on: self-hosted
104
steps:
11-
- uses: actions/checkout@v4
12-
- name: Grant Permission
13-
run: sudo chmod +x ./mvnw
14-
- uses: actions/setup-java@v4
15-
with:
16-
distribution: 'corretto'
17-
java-version: '11'
18-
- name: Run Tests
19-
run: ./mvnw -B -ntp clean test
20-
5+
- continue-on-error: true
6+
uses: actions/checkout@v4
7+
- continue-on-error: true
8+
name: Grant Permission
9+
run: sudo chmod +x ./mvnw
10+
- continue-on-error: true
11+
uses: actions/setup-java@v4
12+
with:
13+
distribution: corretto
14+
java-version: '11'
15+
- continue-on-error: true
16+
name: Run Tests
17+
run: ./mvnw -B -ntp clean test
2118
RunOnMacOs:
22-
runs-on: macos-latest
19+
runs-on: self-hosted
2320
steps:
24-
- uses: actions/checkout@v4
25-
- name: Grant Permission
26-
run: sudo chmod +x ./mvnw
27-
- uses: actions/setup-java@v4
28-
with:
29-
distribution: 'corretto'
30-
java-version: '11'
31-
- name: Run Tests
32-
run: ./mvnw -B -ntp clean test
33-
21+
- continue-on-error: true
22+
uses: actions/checkout@v4
23+
- continue-on-error: true
24+
name: Grant Permission
25+
run: sudo chmod +x ./mvnw
26+
- continue-on-error: true
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: corretto
30+
java-version: '11'
31+
- continue-on-error: true
32+
name: Run Tests
33+
run: ./mvnw -B -ntp clean test
3434
RunOnWindows:
35-
runs-on: windows-latest
35+
runs-on: self-hosted
3636
steps:
37-
- uses: actions/checkout@v4
38-
- uses: actions/setup-java@v4
39-
with:
40-
distribution: 'corretto'
41-
java-version: '11'
42-
- name: Run Tests
43-
run: ./mvnw.cmd -B -ntp clean test
37+
- continue-on-error: true
38+
uses: actions/checkout@v4
39+
- continue-on-error: true
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: corretto
43+
java-version: '11'
44+
- continue-on-error: true
45+
name: Run Tests
46+
run: ./mvnw.cmd -B -ntp clean test
47+
name: Build Check
48+
on:
49+
repository_dispatch:
50+
types: trigger-ga___builds.yml

.github/workflows/maven.yml

Lines changed: 43 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,50 @@
1-
# This workflow is designed to build PRs for AHC. Note that it does not actually publish AHC, just builds and test it.
2-
# Docs: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3-
4-
name: Build PR
5-
6-
on:
7-
push:
8-
branches:
9-
- main
10-
pull_request:
11-
12-
workflow_dispatch:
13-
inputs:
14-
name:
15-
description: 'Github Actions'
16-
required: true
17-
default: 'Github Actions'
18-
191
jobs:
202
RunOnLinux:
21-
runs-on: ubuntu-latest
3+
runs-on: self-hosted
224
steps:
23-
- uses: actions/checkout@v4
24-
- name: Grant Permission
25-
run: sudo chmod +x ./mvnw
26-
- uses: actions/setup-java@v4
27-
with:
28-
distribution: 'corretto'
29-
java-version: '11'
30-
- name: Run Tests
31-
run: ./mvnw -B -ntp clean test
32-
5+
- continue-on-error: true
6+
uses: actions/checkout@v4
7+
- continue-on-error: true
8+
name: Grant Permission
9+
run: sudo chmod +x ./mvnw
10+
- continue-on-error: true
11+
uses: actions/setup-java@v4
12+
with:
13+
distribution: corretto
14+
java-version: '11'
15+
- continue-on-error: true
16+
name: Run Tests
17+
run: ./mvnw -B -ntp clean test
3318
RunOnMacOs:
34-
runs-on: macos-latest
19+
runs-on: self-hosted
3520
steps:
36-
- uses: actions/checkout@v4
37-
- name: Grant Permission
38-
run: sudo chmod +x ./mvnw
39-
- uses: actions/setup-java@v4
40-
with:
41-
distribution: 'corretto'
42-
java-version: '11'
43-
- name: Run Tests
44-
run: ./mvnw -B -ntp clean test
45-
21+
- continue-on-error: true
22+
uses: actions/checkout@v4
23+
- continue-on-error: true
24+
name: Grant Permission
25+
run: sudo chmod +x ./mvnw
26+
- continue-on-error: true
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: corretto
30+
java-version: '11'
31+
- continue-on-error: true
32+
name: Run Tests
33+
run: ./mvnw -B -ntp clean test
4634
RunOnWindows:
47-
runs-on: windows-latest
35+
runs-on: self-hosted
4836
steps:
49-
- uses: actions/checkout@v4
50-
- uses: actions/setup-java@v4
51-
with:
52-
distribution: 'corretto'
53-
java-version: '11'
54-
- name: Run Tests
55-
run: ./mvnw.cmd -B -ntp clean test
37+
- continue-on-error: true
38+
uses: actions/checkout@v4
39+
- continue-on-error: true
40+
uses: actions/setup-java@v4
41+
with:
42+
distribution: corretto
43+
java-version: '11'
44+
- continue-on-error: true
45+
name: Run Tests
46+
run: ./mvnw.cmd -B -ntp clean test
47+
name: Build PR
48+
on:
49+
repository_dispatch:
50+
types: trigger-ga___maven.yml

.github/workflows/release.yml

Lines changed: 39 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,42 @@
1-
name: Release
2-
3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
name:
7-
description: 'Github Actions - Release'
8-
required: true
9-
default: 'Github Actions - Release'
10-
111
jobs:
12-
132
Publish:
14-
runs-on: ubuntu-latest
3+
runs-on: self-hosted
154
steps:
16-
- uses: actions/checkout@v4
17-
18-
- name: Grant Permission
19-
run: sudo chmod +x ./mvnw
20-
21-
- uses: actions/setup-java@v4
22-
with:
23-
distribution: 'corretto'
24-
java-version: '11'
25-
26-
- name: Remove old Maven Settings
27-
run: rm -f /home/runner/.m2/settings.xml
28-
29-
- name: Maven Settings
30-
31-
with:
32-
servers: |
33-
[{
34-
"id": "ossrh",
35-
"username": "${{ secrets.OSSRH_USERNAME }}",
36-
"password": "${{ secrets.OSSRH_PASSWORD }}"
37-
}]
38-
39-
- name: Import GPG
40-
uses: crazy-max/[email protected]
41-
with:
42-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
43-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
44-
45-
- name: Build
46-
run: mvn -ntp -B clean verify install -DskipTests
47-
48-
- name: Publish to Maven Central
49-
env:
50-
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
51-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
52-
run: mvn -ntp -B deploy -DskipTests -Dgpg.keyname=${GPG_KEY_NAME} -Dgpg.passphrase=${GPG_PASSPHRASE}
5+
- continue-on-error: true
6+
uses: actions/checkout@v4
7+
- continue-on-error: true
8+
name: Grant Permission
9+
run: sudo chmod +x ./mvnw
10+
- continue-on-error: true
11+
uses: actions/setup-java@v4
12+
with:
13+
distribution: corretto
14+
java-version: '11'
15+
- continue-on-error: true
16+
name: Remove old Maven Settings
17+
run: rm -f /home/runner/.m2/settings.xml
18+
- continue-on-error: true
19+
name: Maven Settings
20+
21+
with:
22+
servers: "[{\n \"id\": \"ossrh\",\n \"username\": \"${{ secrets.OSSRH_USERNAME\
23+
\ }}\",\n \"password\": \"${{ secrets.OSSRH_PASSWORD }}\"\n}]\n"
24+
- continue-on-error: true
25+
name: Import GPG
26+
uses: crazy-max/[email protected]
27+
with:
28+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
29+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
30+
- continue-on-error: true
31+
name: Build
32+
run: mvn -ntp -B clean verify install -DskipTests
33+
- continue-on-error: true
34+
env:
35+
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
36+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
37+
name: Publish to Maven Central
38+
run: mvn -ntp -B deploy -DskipTests -Dgpg.keyname=${GPG_KEY_NAME} -Dgpg.passphrase=${GPG_PASSPHRASE}
39+
name: Release
40+
on:
41+
repository_dispatch:
42+
types: trigger-ga___release.yml

0 commit comments

Comments
 (0)