Fix Case 2.6: Non-identical GET_CAPABILITIES requests #199
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_CI_test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
format_check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# If any *.c *.h *.md file(except:libspdm) have Tab, the check will fail. | |
- name: Check code format | |
run: | | |
if grep -rn " " * --include=*.c --include=*.h --include=*.md; | |
then exit 1 | |
fi | |
gcc_mbedtls_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Release -DCRYPTO=mbedtls .. | |
make -j2 | |
gcc_openssl_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Release -DCRYPTO=openssl .. | |
make -j2 | |
VS2019_mbedtls_build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
#ilammy/msvc-dev-cmd@v1 is GitHub Action for configuring Developer Command Prompt for Microsoft Visual Studio on Windows. | |
#This sets up the environment for compiling C/C++ code from command line. | |
- name: Add msbuild to PATH | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -G"NMake Makefiles" -DARCH=x64 -DTOOLCHAIN=VS2019 -DTARGET=Release -DCRYPTO=mbedtls .. | |
nmake | |
VS2019_openssl_build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
#ilammy/msvc-dev-cmd@v1 is GitHub Action for configuring Developer Command Prompt for Microsoft Visual Studio on Windows. | |
#This sets up the environment for compiling C/C++ code from command line. | |
- name: Add msbuild to PATH | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake -G"NMake Makefiles" -DARCH=x64 -DTOOLCHAIN=VS2019 -DTARGET=Release -DCRYPTO=openssl .. | |
nmake |