CMake: Requires nasm 2.14 at least #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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# CMake release build with shared library (msbuild) | |
release-cmake-msvc-msbuild: | |
env: | |
BUILD_TYPE: Release | |
runs-on: windows-latest | |
steps: | |
- name: Setup NASM | |
uses: ilammy/setup-nasm@v1 | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
repository: 'intel/intel-ipsec-mb' | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup environment | |
run: | | |
New-Item -ItemType Directory -Path "$pwd\build" | |
New-Item -ItemType Directory -Path "$pwd\build\bin" | |
"BUILD_DIR=$pwd\build" >> $env:GITHUB_ENV | |
"BINARY_DIR=$pwd\build\bin" >> $env:GITHUB_ENV | |
$env:PATH += "$pwd\build\bin;" | |
- name: Configure CMake | |
run: cmake -A x64 -DIMB_BIN_DIR=${{env.BINARY_DIR}} -B ${{env.BUILD_DIR}} | |
- name: Build | |
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: ctest -j 5 -C ${{env.BUILD_TYPE}} --test-dir ${{env.BUILD_DIR}} | |
# CMake debug build with shared library (msbuild) | |
debug-cmake-msvc-msbuild: | |
env: | |
BUILD_TYPE: Debug | |
runs-on: windows-latest | |
steps: | |
- name: Setup NASM | |
uses: ilammy/setup-nasm@v1 | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
repository: 'intel/intel-ipsec-mb' | |
- name: Add MSBuild to PATH | |
uses: microsoft/[email protected] | |
- name: Setup environment | |
run: | | |
New-Item -ItemType Directory -Path "$pwd\build" | |
New-Item -ItemType Directory -Path "$pwd\build\bin" | |
"BUILD_DIR=$pwd\build" >> $env:GITHUB_ENV | |
"BINARY_DIR=$pwd\build\bin" >> $env:GITHUB_ENV | |
$env:PATH += "$pwd\build\bin;" | |
- name: Configure CMake | |
run: cmake -A x64 -DIMB_BIN_DIR=${{env.BINARY_DIR}} -B ${{env.BUILD_DIR}} | |
- name: Build | |
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: ctest -j 5 -C ${{env.BUILD_TYPE}} --test-dir ${{env.BUILD_DIR}} |