Also exclude Sm9Test on Windows CI #13
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 Windows | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| BUILD_TYPE: Release | |
| GMSSL_VERSION: v3.1.1 | |
| GMSSL_ROOT: C:\Program Files\GmSSL | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure MSVC | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: amd64 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build GmSSL | |
| shell: pwsh | |
| run: | | |
| Invoke-WebRequest -Uri "https://github.com/guanzhi/GmSSL/archive/refs/tags/$env:GMSSL_VERSION.zip" -OutFile GmSSL.zip | |
| Expand-Archive -Path GmSSL.zip -DestinationPath . | |
| cmake -S "GmSSL-$($env:GMSSL_VERSION.TrimStart('v'))" -B GmSSL-build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE "-DCMAKE_INSTALL_PREFIX=$env:GMSSL_ROOT" | |
| cmake --build GmSSL-build --config $env:BUILD_TYPE | |
| cmake --install GmSSL-build --config $env:BUILD_TYPE | |
| "$env:GMSSL_ROOT\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| & "$env:GMSSL_ROOT\bin\gmssl.exe" version | |
| - name: Build with Maven | |
| shell: pwsh | |
| run: mvn -B "-Dcmake.compile.config=$env:BUILD_TYPE" "-Dgmssl.root=$env:GMSSL_ROOT" "-Dtest=!org.gmssl.Sm2Test,!org.gmssl.Sm9Test" package --file pom.xml |