Run workflow. #6
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: Windows CI | ||
on: | ||
push: | ||
branches: [ main, provider, upload-artifact-for-windows ] | ||
pull_request: | ||
branches: [ main ] | ||
env: | ||
ECP_BIN_DIR: "${{ github.workspace }}/bin" | ||
EC_SERVER_KEY: "${{ github.workspace }}/ec_prime256v1_serverkey.pem" | ||
EC_SERVER_CERT: "${{ github.workspace }}/ec_prime256v1_servercert.pem" | ||
EC_CLIENT_KEY: "${{ github.workspace }}/ec_prime256v1_clientkey.pem" | ||
EC_CLIENT_CERT: "${{ github.workspace }}/ec_prime256v1_clientcert.pem" | ||
RSA_SERVER_KEY: "${{ github.workspace }}/rsa_2048_serverkey.pem" | ||
RSA_SERVER_CERT: "${{ github.workspace }}/rsa_2048_servercert.pem" | ||
RSA_CLIENT_KEY: "${{ github.workspace }}/rsa_2048_clientkey.pem" | ||
RSA_CLIENT_CERT: "${{ github.workspace }}/rsa_2048_clientcert.pem" | ||
EC_ISSUER: "EC Test Object" | ||
RSA_ISSUER: "RSA Test Object" | ||
PROVIDER_PATH: "${{ github.workspace }}/bin/libecp_provider.dll" | ||
OPENSSL_ROOT_DIR: "C:\\Program Files\\OpenSSL\\" | ||
jobs: | ||
CI: | ||
runs-on: windows-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Choco install dependencies - OpenSSL | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
with: | ||
args: install openssl --version 3.1.1 | ||
- | ||
name: Choco install dependencies | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
with: | ||
args: install openssl cmake curl | ||
- name: Install ECP | ||
run: .\scripts\windows\ecp_build.ps1 | ||
- name: Build Library | ||
run: cmake -S ecp-provider -B build -G "MinGW Makefiles" -DDEBUG_LOGS=TRUE && cmake --build build && Copy-Item build\libecp_provider.dll $env:PROVIDER_PATH | ||
- name: Set up credentials | ||
run: | | ||
.\scripts\windows\create_client_creds.ps1 | ||
.\scripts\windows\create_server_creds.ps1 | ||
.\scripts\windows\windows_setup.ps1 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
Check failure on line 49 in .github/workflows/windows.yml GitHub Actions / Windows CIInvalid workflow file
|
||
# A file, directory or wildcard pattern that describes what to upload | ||
# Required. | ||
path: | ||
build\libecp_provider.dll | ||
# Tests are currently not passing on the windows CI. | ||
# - name: Test mTLS Python | ||
# run: | | ||
# Start-Process -FilePath .\scripts\start_mtls_https_server.ps1 | ||
# .\tests\test_mtls_py.ps1 |