mirror of
https://github.com/rife2/bld
synced 2026-06-26 21:57:47 +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:
|
||||
matrix:
|
||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
||||
java-version: [17, 22, 24, 26]
|
||||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
submodules: "true"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK ${{ matrix.java-version }}
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
distribution: "corretto"
|
||||
java-version: ${{ matrix.java-version }}
|
||||
check-latest: true
|
||||
|
||||
|
|
@ -128,27 +128,27 @@ jobs:
|
|||
|
||||
- name: Run reporter
|
||||
if: always() && steps.tests.outcome == 'failure'
|
||||
run: ./bld reporter --all
|
||||
run: ./bld --offline reporter --all
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
||||
java-version: [17, 20, 21, 22, 23, 24, 25]
|
||||
|
||||
steps:
|
||||
- name: Checkout source repository
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
submodules: "true"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK ${{ matrix.java-version }}
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
distribution: "corretto"
|
||||
java-version: ${{ matrix.java-version }}
|
||||
check-latest: true
|
||||
|
||||
|
|
@ -169,14 +169,14 @@ jobs:
|
|||
|
||||
- name: Run reporter
|
||||
if: always() && steps.tests.outcome == 'failure'
|
||||
run: ./bld reporter --all
|
||||
run: ./bld --offline reporter --all
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
java-version: [ 17, 20, 21, 22, 23, 24, 25 ]
|
||||
java-version: [17, 20, 21, 22, 23, 24, 25]
|
||||
|
||||
steps:
|
||||
- name: Configure git line endings
|
||||
|
|
@ -186,13 +186,13 @@ jobs:
|
|||
uses: actions/checkout@v7
|
||||
with:
|
||||
clean: true
|
||||
submodules: 'true'
|
||||
submodules: "true"
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK ${{ matrix.java-version }}
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'corretto'
|
||||
distribution: "corretto"
|
||||
java-version: ${{ matrix.java-version }}
|
||||
check-latest: true
|
||||
|
||||
|
|
@ -213,4 +213,4 @@ jobs:
|
|||
|
||||
- name: Run reporter
|
||||
if: always() && steps.tests.outcome == 'failure'
|
||||
run: .\bld.bat reporter --all
|
||||
run: .\bld.bat --offline reporter --all
|
||||
|
|
|
|||
35
.github/workflows/publish.yml
vendored
35
.github/workflows/publish.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-bld-project:
|
||||
publish-bld-project:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -37,15 +37,32 @@ jobs:
|
|||
- name: Import key
|
||||
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
|
||||
run: >-
|
||||
./bld compile test publish
|
||||
-Drife2Username=${{ secrets.RIFE2_USERNAME }}
|
||||
-Drife2Password=${{ secrets.RIFE2_PASSWORD }}
|
||||
-DsonatypeUser=${{ secrets.SONATYPE_USER }}
|
||||
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
|
||||
-DsignKey=${{ secrets.SIGN_KEY }}
|
||||
-DsignPassphrase=${{ secrets.SIGN_PASSPHRASE }}
|
||||
./bld publish
|
||||
-Dbld.repo.github=https://maven.pkg.github.com/rife2/bld
|
||||
-Dbld.repo.github.username=${{ secrets.GH_USERNAME }}
|
||||
-Dbld.repo.github.password=${{ secrets.GH_PASSWORD }}
|
||||
-Dbld.repo.rife2-snapshots=https://repo.rife2.com/snapshots/
|
||||
-Dbld.repo.rife2-snapshots.username=${{ secrets.RIFE2_USERNAME }}
|
||||
-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
|
||||
run: rm -rfv $HOME/.gnupg
|
||||
if: always()
|
||||
run: rm -rfv $HOME/.gnupg
|
||||
Loading…
Reference in a new issue