[feat] Upgrade Gradle to 7.3 and fixs interval and extract function #102
This file contains 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: Build | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.java" | |
- "**/*.h" | |
- "**/*.cc" | |
- "**/CMakeList.txt" | |
- "**/build.gradle" | |
- "gradle.properties" | |
- "settings.gradle" | |
- ".github/workflows/build.yml" | |
pull_request: | |
branches: | |
- main | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Configure libexpr | |
working-directory: ${{github.workspace}}/libexpr | |
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTS=OFF | |
- name: Build libexpr | |
working-directory: ${{github.workspace}}/libexpr | |
run: cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Config jni | |
working-directory: ${{github.workspace}}/jni/src/main/cpp | |
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build jni | |
working-directory: ${{github.workspace}}/jni/src/main/cpp | |
run: cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Check and test with Gradle | |
run: ./gradlew check |