Skip to content

Commit

Permalink
Update GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
leerho committed Dec 17, 2024
1 parent cb34ae6 commit c6e9190
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 15 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/auto-check_cpp_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/auto-jdk-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/auto-os-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DataSketches-Java 8 Auto OS Matrix Test & Install
name: DataSketches-Java Auto OS Matrix Test & Install

on:
pull_request:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/manual-codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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}}"
18 changes: 17 additions & 1 deletion .github/workflows/manual-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/github-pages-deploy-action@v4.6.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: target/site/apidocs
Expand Down

0 comments on commit c6e9190

Please sign in to comment.