Build TRNG4 with Microsoft Visual C++ on Windows #35
Workflow file for this run
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-windows-msvc | |
run-name: Build TRNG4 with Microsoft Visual C++ on Windows | |
on: [ push, workflow_dispatch ] | |
jobs: | |
compile-trng4: | |
strategy: | |
matrix: | |
build-type: [ Debug, Release ] | |
runs-on: windows-2022 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install build dependencies | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Setup environment | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64 | |
- name: Build TRNG4 | |
run: | | |
mkdir build | |
cd build | |
cmake -G Ninja -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_INSTALL_PREFIX="$HOME/trng4" -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} .. | |
cmake --build . -j | |
- name: Install TRNG4 | |
run: | | |
cd build | |
cmake --build . --target install | |
- name: Pack TRNG4 | |
run: | | |
cd build | |
cmake --build . --target package | |
- name: Test TRNG4 | |
run: | | |
cd build | |
ctest --output-on-failure | |
- run: echo "This job's status is ${{ job.status }}." |