Update Dependencies #100
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: unit-test-windows | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build-windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Configure build | |
run: cd build && cmake --preset windows ../ | |
- name: Execute build | |
run: cd build && cmake --build . -j | |
- name: Cache build artifacts | |
uses: actions/cache@v4 | |
with: | |
path: build | |
key: ${{ github.workflow }}-${{ github.sha }} | |
test-windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: bash | |
needs: build-windows | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Retrieve build artifacts | |
uses: actions/cache@v4 | |
with: | |
path: build | |
key: ${{ github.workflow }}-${{ github.sha }} | |
- name: Setup python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install python packages | |
run: pip install -r requirements.txt | |
- name: Run unit test | |
run: ./hpr-sim.py -i input/unit_test.yml -o output/ && ls -l output/*/* | |
- name: Run regression test | |
run: python tools/regression_test.py tools/unit_test/windows output/unit_test output/diff | |
pyinstaller-windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: bash | |
needs: build-windows | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Retrieve build artifacts | |
uses: actions/cache@v4 | |
with: | |
path: build | |
key: ${{ github.workflow }}-${{ github.sha }} | |
- name: Setup python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install python packages | |
run: pip install -r requirements.txt | |
- name: PyInstaller build | |
run: python tools/pyinstaller_build.py | |
- name: Run unit test | |
run: cd build/pyinstaller/dist/hpr-sim && ./hpr-sim -i input/unit_test.yml -o output/ && ls -l output/*/* | |
- name: Run regression test | |
run: python tools/regression_test.py tools/unit_test/windows build/pyinstaller/dist/hpr-sim/output/unit_test build/pyinstaller/dist/hpr-sim/output/diff |