Skip to content

Commit

Permalink
add cmake test build for github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdcvlsc committed Sep 10, 2023
1 parent 9657c67 commit e36c966
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ on:
branches: [ main ]

jobs:
cmake-build:
name: ${{ matrix.platform.name }}
runs-on: ${{ matrix.platform.os }}

strategy:
fail-fast: false
matrix:
aes:
- { name: Pure C++ Implementation, flag: portable }
- { name: Intel x86_64 AES NI, flag: aesni }
- { name: ARMv8 aarch64 NEON, flag: neon }
platform:
# - { name: Linux Clang, os: ubuntu-latest, outpath: './', flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
- { name: Windows VS2019, os: windows-2019, outpath: 'Release\', fext: .exe, }
- { name: Windows VS2022, os: windows-2022, outpath: 'Release\', fext: .exe, }
- { name: MacOS XCode, os: macos-latest, outpath: './' }
# - { name: Linux GCC, os: ubuntu-latest, outpath: './' }

steps:
- uses: actions/checkout@v3

- name: System Info
run: cmake cmake -S . -B . -D AES_IMPL=${{matrix.aes.flag}}

- name: Build
run: cmake --build tests --config Release

- name: Run Tests
run: "${{matrix.platform.outpath}}tests${{matrix.platform.fext}}"

aarch64-gcc:

runs-on: ubuntu-latest
Expand Down

0 comments on commit e36c966

Please sign in to comment.