-
Notifications
You must be signed in to change notification settings - Fork 35
To main #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To main #274
Changes from all commits
f72602d
7071b96
c075476
74c46ff
3082c72
0b6bb80
93d9b9b
120d375
9a29f6e
9260eb9
cb65539
8859a2a
05b267f
b399cfd
9ed7525
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,66 +6,31 @@ on: | |
| branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]'] | ||
| pull_request: | ||
| paths-ignore: [ '**/*.html', '**/*.md', '**/*.txt', '**/LICENSE', '**/NOTICE' ] | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ 'main', '[0-9]+.[0-9]+.[Xx]', 'v[0-9]+.[0-9]+.[Xx]'] | ||
| workflow_dispatch: | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| MAVEN_OPTS: -Xmx4g -Xms1g | ||
| MAVEN_ARGS: "-B -Dmaven.javadoc.skip=true -Dgpg.skip=true" | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build, Test, Install | ||
| runs-on: ${{ matrix.os }} | ||
|
|
||
| run-matrix: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| jdk: [ 25 ] | ||
| os: [ windows-latest, ubuntu-latest, macos-latest ] | ||
|
|
||
| steps: | ||
| - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install Matrix JDK | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: ${{ matrix.jdk }} | ||
| distribution: 'temurin' | ||
| java-package: jdk | ||
| architecture: x64 | ||
| cache: 'maven' # performance optimization | ||
| overwrite-settings: true # ensures the runner's .m2/settings.xml is current | ||
|
|
||
| - name: Verify Toolchain Configuration | ||
| shell: bash | ||
| run: | | ||
| if [ -f ~/.m2/toolchains.xml ]; then | ||
| cat ~/.m2/toolchains.xml | ||
| else | ||
| echo "toolchains.xml not found in ~/.m2/" | ||
| fi | ||
|
|
||
| - name: Echo Java & Maven Version | ||
| run: mvn -version #also prints java-version | ||
|
|
||
| - name: Print Current workflow | ||
| run: cat .github/workflows/auto-jdk-os-matrix.yml | ||
|
|
||
| - name: Test | ||
| run: mvn clean test | ||
|
|
||
| - name: Install | ||
| run: mvn clean install "-DskipTests=true" "-Dmaven.clean.failOnError=false" #windows os hack | ||
|
|
||
|
|
||
| # Architecture options: x86, x64, armv7, aarch64, ppc64le | ||
| # Lifecycle: validate, compile, test, package, verify, install, deploy | ||
| # -B batch mode, never stops for user input | ||
| # -V show Version without stopping | ||
| # -X debug mode | ||
| # -q quiet, only show errors | ||
| include: | ||
| - os: windows-latest | ||
| arch: x64 | ||
| - os: ubuntu-latest | ||
| arch: x64 | ||
| - os: macos-latest | ||
| arch: aarch64 | ||
|
|
||
| # Reference the reusable workflow on the "workflows" branch | ||
| uses: apache/datasketches-memory/.github/workflows/reusable-jdk-os-matrix.yml@workflows | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we can simply inline the reuseable workflows at the main branch. Either under
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to GitHub Docs, the reusable workflows (RWFs) can have the location syntax: I would prefer having the RWFs in a separate branch ... or a common repo ... hmm... Actually, I'd prefer if you would approve it here so I can test it. And then if it works, I'll move the "workflows" directory to DS-Java, where it makes more sense and can be leveraged by other DS-"java" repos, like hive, pig, characterization, vector, server, etc (that is, if we want to upgrade them :) ) |
||
| with: | ||
| jdk_version: ${{ matrix.jdk }} | ||
| os_type: ${{ matrix.os }} | ||
| java_arch: ${{ matrix.arch }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # suppresses the warning: | ||
| # Direct modification of testCompileSourceRoots through add() is deprecated and will not work in Maven 4.0.0. Please use the add/remove methods instead. | ||
| # If you're using a plugin that causes this warning, please upgrade to the latest version and report an issue if the warning persists. | ||
| # To disable these warnings, set -Dmaven.project.sourceRoots.warningsDisabled=true on the command line or in the .mvn/maven.config file. | ||
| -Dmaven.project.sourceRoots.warningsDisabled=true |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.