fix VersionRange.isRange() #987
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'CI Build' | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| paths: | |
| - '**' | |
| - '!docs/**' | |
| - '!.github/**' | |
| - '.github/**/*ci*' | |
| - '!CONTRIBUTING.md' | |
| - '!DEV_README.md' | |
| - '!README.md' | |
| pull_request: | |
| paths: | |
| - '**' | |
| - '!docs/**' | |
| - '!.github/**' | |
| - '.github/**/*ci*' | |
| - '!CONTRIBUTING.md' | |
| - '!DEV_README.md' | |
| - '!README.md' | |
| env: | |
| LC_ALL: en_US.UTF-8 | |
| GRADLE_OPTS: >- | |
| -Dorg.gradle.parallel=true | |
| MAVEN_OPTS: >- | |
| -Dhttp.keepAlive=false | |
| -Dmaven.wagon.http.pool=false | |
| -Dmaven.wagon.http.retryHandler.count=3 | |
| -Daether.connector.http.retryHandler.count=5 | |
| -Daether.connector.http.reuseConnections=false | |
| -Daether.connector.http.connectionMaxTtl=25 | |
| -Daether.connector.connectTimeout=120000 | |
| BNDTOOLS_CORE_TEST_NOJUNITOSGI: true # This test is very flaky on CI | |
| GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
| P2_SIGN: true | |
| P2_SIGN_KEY: ${{ secrets.GPG_KEY_ID }} | |
| P2_SIGN_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| P2_PUB_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | |
| SONATYPE_BEARER: ${{ secrets.SONATYPE_BEARER }} | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: ${{ (github.repository != 'bndtools/bnd') || ((github.ref != 'refs/heads/master') && (github.ref != 'refs/heads/next')) || (github.event_name == 'pull_request') }} | |
| matrix: | |
| os: | |
| - 'ubuntu-latest' | |
| java: | |
| - '21' | |
| - '25' | |
| runner: | |
| - '{0}' # 'xvfb-run --auto-servernum {0}' | |
| include: | |
| - os: 'ubuntu-latest' | |
| java: '17' | |
| runner: '{0}' # 'xvfb-run --auto-servernum {0}' | |
| canonical: ${{ (github.repository == 'bndtools/bnd') && ((github.ref == 'refs/heads/master') || (github.ref == 'refs/heads/next')) && (github.event_name != 'pull_request') }} | |
| fetch-depth: '0' | |
| - os: 'windows-latest' | |
| java: '17' | |
| runner: '{0}' | |
| name: Build JDK${{ matrix.java }} ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b | |
| with: | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - name: Git Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: ${{ matrix.fetch-depth }} | |
| - name: Set up Java 8 + ${{ matrix.java }} | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| distribution: 'temurin' | |
| java-version: | | |
| 8 | |
| ${{ matrix.java }} | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c | |
| #- name: Cache cnf cache and ~/.bnd/urlcache/ | |
| # id: cache-cnf-cache | |
| # uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 | |
| # env: | |
| # cache-name: cache-cnf-cache | |
| # with: | |
| # path: | | |
| # "${{ github.workspace }}/cnf/cache" | |
| # ~/.bnd/urlcache/ | |
| # key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/cnf/**/*.bnd', '**/cnf/**/*.mvn', '**/cnf/**/*.maven', '**/cnf/ext/*.*') }} | |
| - name: Build | |
| id: build | |
| run: | | |
| ${{ format(matrix.runner, './.github/scripts/ci-build.sh') }} | |
| - name: Configure settings.xml for Publish | |
| if: ${{ matrix.canonical }} | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| server-id: bndtools.jfrog.io | |
| server-username: JFROG_USERNAME | |
| server-password: JFROG_PASSWORD | |
| - name: Publish | |
| id: publish | |
| if: ${{ matrix.canonical }} | |
| run: | | |
| env | sort | |
| ./.github/scripts/ci-publish.sh | |
| env: | |
| CANONICAL: ${{ matrix.canonical }} | |
| GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | |
| GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
| SONATYPE_BEARER: ${{ secrets.SONATYPE_BEARER }} | |
| JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
| JFROG_PASSWORD: ${{ secrets.JFROG_PASSWORD }} | |
| - name: Upload Test Reports | |
| if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }} | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f | |
| with: | |
| name: Build_JDK${{ matrix.java }}_${{ matrix.os }}-test-reports | |
| path: | | |
| */generated/test-reports/*/TEST-*.xml | |
| maven/*/target/surefire-reports/TEST-*.xml | |
| gradle-plugins/*/build/test-results/*/TEST-*.xml | |
| gradle-plugins/build/reports/* |