Skip to content

⚡ Enable relocation of all 2-input gates during post_layout_optimization #3128

⚡ Enable relocation of all 2-input gates during post_layout_optimization

⚡ Enable relocation of all 2-input gates during post_layout_optimization #3128

Workflow file for this run

name: 🪟 • CI
on:
push:
branches: [ 'main' ]
paths:
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/windows.yml'
- '!bindings/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp'
pull_request:
branches: [ 'main' ]
paths:
- '**/*.hpp'
- '**/*.cpp'
- '**/*.cmake'
- '**/CMakeLists.txt'
- 'libs/**'
- '.github/workflows/windows.yml'
- '!bindings/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp'
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: pwsh # use pwsh as directory handling does not seem to work with bash
env:
Z3_VERSION: 4.10.0
jobs:
build_and_test:
strategy:
matrix:
os: [ windows-2019, windows-2022 ]
toolset: [ v142, v143, ClangCL ]
include:
- os: windows-2019
env: 'Visual Studio 16 2019'
- os: windows-2022
env: 'Visual Studio 17 2022'
exclude:
- os: windows-2019
toolset: v143
- os: windows-2022
toolset: v142
name: 🪟 ${{matrix.os}} with ${{matrix.env}} and ${{matrix.toolset}} toolset
runs-on: ${{matrix.os}}
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: '${{matrix.os}}-${{matrix.toolset}}'
variant: ccache
save: true
max-size: 10G
- name: Setup Z3 Solver
id: z3
uses: cda-tum/setup-z3@v1
with:
version: ${{env.Z3_VERSION}}
platform: windows
architecture: x64
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Build and test pipeline for Debug mode
- name: Create Build Environment (Debug)
run: cmake -E make_directory ${{github.workspace}}\build_debug
- name: Configure CMake
working-directory: ${{github.workspace}}\build_debug
run: >
cmake ${{github.workspace}} -G "${{matrix.env}}" -A x64 -T ${{matrix.toolset}}
-DCMAKE_BUILD_TYPE=Debug
-DFICTION_ENABLE_UNITY_BUILD=ON
-DFICTION_ENABLE_PCH=ON
-DFICTION_CLI=ON
-DFICTION_TEST=ON
-DFICTION_BENCHMARK=OFF
-DFICTION_EXPERIMENTS=ON
-DFICTION_Z3=ON
-DFICTION_WARNINGS_AS_ERRORS=OFF
-DMOCKTURTLE_EXAMPLES=OFF
- name: Build (Debug)
working-directory: ${{github.workspace}}\build_debug
run: cmake --build . --config Debug -j4
- name: Test (Debug)
working-directory: ${{github.workspace}}\build_debug
run: ctest -C Debug --verbose --output-on-failure --repeat until-pass:3 --parallel 4
# Build and test pipeline for Release mode
- name: Create Build Environment (Release)
run: cmake -E make_directory ${{github.workspace}}\build_release
- name: Configure CMake
working-directory: ${{github.workspace}}\build_release
run: >
cmake ${{github.workspace}} -G "${{matrix.env}}" -A x64 -T ${{matrix.toolset}}
-DCMAKE_BUILD_TYPE=Release
-DFICTION_ENABLE_UNITY_BUILD=ON
-DFICTION_ENABLE_PCH=ON
-DFICTION_CLI=ON
-DFICTION_TEST=ON
-DFICTION_BENCHMARK=OFF
-DFICTION_EXPERIMENTS=ON
-DFICTION_Z3=ON
-DFICTION_WARNINGS_AS_ERRORS=OFF
-DMOCKTURTLE_EXAMPLES=OFF
- name: Build (Release)
working-directory: ${{github.workspace}}\build_release
run: cmake --build . --config Release -j4
- name: Test (Release)
working-directory: ${{github.workspace}}\build_release
run: ctest -C Release --verbose --output-on-failure --repeat until-pass:3 --parallel 4