This is an automated email from the ASF dual-hosted git repository. leerho pushed a commit to branch update_GHA_workflows in repository https://gitbox.apache.org/repos/asf/datasketches-java.git
commit c6e91907cca98393e1eb1b99207c832cad2abcaa Author: Lee Rhodes <[email protected]> AuthorDate: Tue Dec 17 09:00:22 2024 -0800 Update GHA workflows --- .github/workflows/auto-check_cpp_files.yml | 22 +++++++++++++++------- .github/workflows/auto-jdk-matrix.yml | 4 ++-- .github/workflows/auto-os-matrix.yml | 2 +- .github/workflows/manual-codeql-analysis.yml | 8 ++++---- .github/workflows/manual-javadoc.yml | 18 +++++++++++++++++- 5 files changed, 39 insertions(+), 15 deletions(-) diff --git a/.github/workflows/auto-check_cpp_files.yml b/.github/workflows/auto-check_cpp_files.yml index 9fe9ca64..35d0e3c5 100644 --- a/.github/workflows/auto-check_cpp_files.yml +++ b/.github/workflows/auto-check_cpp_files.yml @@ -12,25 +12,33 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Checkout C++ + + - name: Checkout C++ uses: actions/checkout@v4 with: repository: apache/datasketches-cpp path: cpp - - name: Setup Java + + - name: Setup Java uses: actions/setup-java@v4 with: java-version: '11' distribution: 'temurin' - - name: Configure C++ build + + - name: Configure C++ build run: cd cpp/build && cmake .. -DGENERATE=true - - name: Build C++ unit tests + + - name: Build C++ unit tests run: cd cpp && cmake --build build --config Release + - name: Run C++ tests run: cd cpp && cmake --build build --config Release --target test - - name: Make dir + + - name: Make dir run: mkdir -p serialization_test_data/cpp_generated_files - - name: Copy files + + - name: Copy files run: cp cpp/build/*/test/*_cpp.sk serialization_test_data/cpp_generated_files - - name: Run Java tests + + - name: Run Java tests run: mvn test -P check-cpp-files diff --git a/.github/workflows/auto-jdk-matrix.yml b/.github/workflows/auto-jdk-matrix.yml index 98a37cfd..dd780a96 100644 --- a/.github/workflows/auto-jdk-matrix.yml +++ b/.github/workflows/auto-jdk-matrix.yml @@ -64,9 +64,9 @@ jobs: -Dgpg.skip=true # Architecture options: x86, x64, armv7, aarch64, ppc64le -# setup-java@v3 has a "with cache" option +# setup-java@v4 has a "with cache" option # Lifecycle: validate, compile, test, package, verify, install, deploy -# -B batch mode +# -B batch mode, never stops for user input # -V show Version without stopping # -X debug mode # -q quiet, only show errors diff --git a/.github/workflows/auto-os-matrix.yml b/.github/workflows/auto-os-matrix.yml index dbba4f68..e04f9a64 100644 --- a/.github/workflows/auto-os-matrix.yml +++ b/.github/workflows/auto-os-matrix.yml @@ -1,4 +1,4 @@ -name: DataSketches-Java 8 Auto OS Matrix Test & Install +name: DataSketches-Java Auto OS Matrix Test & Install on: pull_request: diff --git a/.github/workflows/manual-codeql-analysis.yml b/.github/workflows/manual-codeql-analysis.yml index a1f07f77..1b94d13a 100644 --- a/.github/workflows/manual-codeql-analysis.yml +++ b/.github/workflows/manual-codeql-analysis.yml @@ -39,10 +39,10 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v3 + uses: github/codeql-action/autobuild@v4 - # âšī¸ Command-line programs to run using the OS shell. - # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # Command-line programs to run using the OS shell. + # See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. @@ -52,6 +52,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/manual-javadoc.yml b/.github/workflows/manual-javadoc.yml index 458aff3d..24f9d0b3 100644 --- a/.github/workflows/manual-javadoc.yml +++ b/.github/workflows/manual-javadoc.yml @@ -6,13 +6,29 @@ on: jobs: javadoc: runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + java-version: '1.8' + distribution: 'temurin' + + - name: Echo Java Version + run: java -version + + - name: Print Current workflow + run: > + cat .github/workflows/manual-javadoc.yml + - name: Generate JavaDoc run: mvn javadoc:javadoc + - name: Deploy JavaDoc - uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92 + uses: JamesIves/[email protected] with: token: ${{ secrets.GITHUB_TOKEN }} folder: target/site/apidocs --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
