Trigger actions for PRs and pin the version of libcimpp #2523
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 & Test Windows | |
on: | |
push: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
## Build ## | |
jobs: | |
windows: | |
name: Build on Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create build folder | |
run: | | |
cd ${{ github.workspace }} | |
mkdir build | |
- name: Setup build directory cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/build | |
key: build-windows-cache-${{ github.ref }} | |
- name: Build DPsim | |
run: | | |
cd ${{ github.workspace }} | |
cd build | |
git describe --tags --abbrev=0 --match "v*" | |
cmake -DWITH_PYBIND=OFF .. | |
cmake --build . --target dpsim --parallel |