mirror of
https://github.com/rife2/bld
synced 2026-06-27 06:07:48 +02:00
Publish and tests workflows improvements (#85)
Some checks are pending
bld-ci / build-linux (17) (push) Waiting to run
bld-ci / build-linux (22) (push) Waiting to run
bld-ci / build-linux (24) (push) Waiting to run
bld-ci / build-linux (26) (push) Waiting to run
bld-ci / build-macos (17) (push) Waiting to run
bld-ci / build-macos (20) (push) Waiting to run
bld-ci / build-macos (21) (push) Waiting to run
bld-ci / build-macos (22) (push) Waiting to run
bld-ci / build-macos (23) (push) Waiting to run
bld-ci / build-macos (24) (push) Waiting to run
bld-ci / build-macos (25) (push) Waiting to run
bld-ci / build-windows (17) (push) Waiting to run
bld-ci / build-windows (20) (push) Waiting to run
bld-ci / build-windows (21) (push) Waiting to run
bld-ci / build-windows (22) (push) Waiting to run
bld-ci / build-windows (23) (push) Waiting to run
bld-ci / build-windows (24) (push) Waiting to run
bld-ci / build-windows (25) (push) Waiting to run
javadocs-pages / deploy (push) Waiting to run
Some checks are pending
bld-ci / build-linux (17) (push) Waiting to run
bld-ci / build-linux (22) (push) Waiting to run
bld-ci / build-linux (24) (push) Waiting to run
bld-ci / build-linux (26) (push) Waiting to run
bld-ci / build-macos (17) (push) Waiting to run
bld-ci / build-macos (20) (push) Waiting to run
bld-ci / build-macos (21) (push) Waiting to run
bld-ci / build-macos (22) (push) Waiting to run
bld-ci / build-macos (23) (push) Waiting to run
bld-ci / build-macos (24) (push) Waiting to run
bld-ci / build-macos (25) (push) Waiting to run
bld-ci / build-windows (17) (push) Waiting to run
bld-ci / build-windows (20) (push) Waiting to run
bld-ci / build-windows (21) (push) Waiting to run
bld-ci / build-windows (22) (push) Waiting to run
bld-ci / build-windows (23) (push) Waiting to run
bld-ci / build-windows (24) (push) Waiting to run
bld-ci / build-windows (25) (push) Waiting to run
javadocs-pages / deploy (push) Waiting to run
* Run JUnit reporter without internet (offline) * Add repository locations to publish workflow * Change java-version matrix to LTS and current JDK versions
This commit is contained in:
parent
bd10018aa8
commit
f604f22474
24
.github/workflows/bld.yml
vendored
24
.github/workflows/bld.yml
vendored
|
|
@ -90,20 +90,20 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
java-version: [17, 22, 24, 26]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
clean: true
|
clean: true
|
||||||
submodules: 'true'
|
submodules: "true"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java-version }}
|
- name: Set up JDK ${{ matrix.java-version }}
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'corretto'
|
distribution: "corretto"
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
|
|
@ -128,27 +128,27 @@ jobs:
|
||||||
|
|
||||||
- name: Run reporter
|
- name: Run reporter
|
||||||
if: always() && steps.tests.outcome == 'failure'
|
if: always() && steps.tests.outcome == 'failure'
|
||||||
run: ./bld reporter --all
|
run: ./bld --offline reporter --all
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
java-version: [17, 20, 21, 22, 23, 24, 25]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
clean: true
|
clean: true
|
||||||
submodules: 'true'
|
submodules: "true"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java-version }}
|
- name: Set up JDK ${{ matrix.java-version }}
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'corretto'
|
distribution: "corretto"
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
|
|
@ -169,14 +169,14 @@ jobs:
|
||||||
|
|
||||||
- name: Run reporter
|
- name: Run reporter
|
||||||
if: always() && steps.tests.outcome == 'failure'
|
if: always() && steps.tests.outcome == 'failure'
|
||||||
run: ./bld reporter --all
|
run: ./bld --offline reporter --all
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
java-version: [17, 20, 21, 22, 23, 24, 25]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure git line endings
|
- name: Configure git line endings
|
||||||
|
|
@ -186,13 +186,13 @@ jobs:
|
||||||
uses: actions/checkout@v7
|
uses: actions/checkout@v7
|
||||||
with:
|
with:
|
||||||
clean: true
|
clean: true
|
||||||
submodules: 'true'
|
submodules: "true"
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java-version }}
|
- name: Set up JDK ${{ matrix.java-version }}
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'corretto'
|
distribution: "corretto"
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
|
|
@ -213,4 +213,4 @@ jobs:
|
||||||
|
|
||||||
- name: Run reporter
|
- name: Run reporter
|
||||||
if: always() && steps.tests.outcome == 'failure'
|
if: always() && steps.tests.outcome == 'failure'
|
||||||
run: .\bld.bat reporter --all
|
run: .\bld.bat --offline reporter --all
|
||||||
|
|
|
||||||
33
.github/workflows/publish.yml
vendored
33
.github/workflows/publish.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bld-project:
|
publish-bld-project:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -37,15 +37,32 @@ jobs:
|
||||||
- name: Import key
|
- name: Import key
|
||||||
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import
|
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import
|
||||||
|
|
||||||
|
- name: Compile source
|
||||||
|
run: ./bld clean compile
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
id: tests
|
||||||
|
run: ./bld test
|
||||||
|
|
||||||
|
- name: Run reporter
|
||||||
|
if: always() && steps.tests.outcome == 'failure'
|
||||||
|
run: ./bld --offline reporter --all
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: >-
|
run: >-
|
||||||
./bld compile test publish
|
./bld publish
|
||||||
-Drife2Username=${{ secrets.RIFE2_USERNAME }}
|
-Dbld.repo.github=https://maven.pkg.github.com/rife2/bld
|
||||||
-Drife2Password=${{ secrets.RIFE2_PASSWORD }}
|
-Dbld.repo.github.username=${{ secrets.GH_USERNAME }}
|
||||||
-DsonatypeUser=${{ secrets.SONATYPE_USER }}
|
-Dbld.repo.github.password=${{ secrets.GH_PASSWORD }}
|
||||||
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
|
-Dbld.repo.rife2-snapshots=https://repo.rife2.com/snapshots/
|
||||||
-DsignKey=${{ secrets.SIGN_KEY }}
|
-Dbld.repo.rife2-snapshots.username=${{ secrets.RIFE2_USERNAME }}
|
||||||
-DsignPassphrase=${{ secrets.SIGN_PASSPHRASE }}
|
-Dbld.repo.rife2-snapshots.password=${{ secrets.RIFE2_PASSWORD }}
|
||||||
|
-Dbld.repo.central-snapshots=https://central.sonatype.com/repository/maven-snapshots/
|
||||||
|
-Dbld.repo.central-snapshots.username=${{ secrets.SONATYPE_USER }}
|
||||||
|
-Dbld.repo.central-snapshots.password=${{ secrets.SONATYPE_PASSWORD }}
|
||||||
|
-Dsign.key=${{ secrets.SIGN_KEY }}
|
||||||
|
-Dsign.passphrase=${{ secrets.SIGN_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Delete GnuPG data
|
- name: Delete GnuPG data
|
||||||
|
if: always()
|
||||||
run: rm -rfv $HOME/.gnupg
|
run: rm -rfv $HOME/.gnupg
|
||||||
Loading…
Reference in a new issue