Bump version to 1.0.0 and add GitHub Release workflow #15
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 Linux | |
| 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: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y cmake build-essential unzip | |
| - name: Build and install 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} | |
| sudo ldconfig | |
| gmssl version | |
| - name: Build with Maven | |
| run: mvn -B -Dcmake.compile.config=${BUILD_TYPE} -Dgmssl.root=${GMSSL_ROOT} package --file pom.xml |