Exclude Sm2Test on Windows CI to work around native crash #12
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: Maven CI macOS ARM64 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| BUILD_TYPE: Release | |
| GMSSL_VERSION: v3.1.1 | |
| GMSSL_ROOT: /usr/local | |
| jobs: | |
| build: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build GmSSL | |
| run: | | |
| curl -L "https://github.com/guanzhi/GmSSL/archive/refs/tags/${GMSSL_VERSION}.zip" -o GmSSL.zip | |
| unzip GmSSL.zip | |
| cmake -S "GmSSL-${GMSSL_VERSION#v}" -B GmSSL-build -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${GMSSL_ROOT} | |
| cmake --build GmSSL-build --config ${BUILD_TYPE} --parallel | |
| sudo cmake --install GmSSL-build --config ${BUILD_TYPE} | |
| gmssl version | |
| env: | |
| DYLD_LIBRARY_PATH: /usr/local/lib | |
| - name: Build with Maven | |
| run: mvn -B -Dcmake.compile.config=${BUILD_TYPE} -Dgmssl.root=${GMSSL_ROOT} package --file pom.xml | |
| env: | |
| DYLD_LIBRARY_PATH: /usr/local/lib |