diff --git a/.gitea/workflows/build_and_test.yml b/.gitea/workflows/build_and_test.yml index fa13a3ce..8e33668d 100644 --- a/.gitea/workflows/build_and_test.yml +++ b/.gitea/workflows/build_and_test.yml @@ -64,6 +64,27 @@ jobs: run: | cd build/tools ./jfjoch_hdf5_test ../../tests/test_data/compression_benchmark.h5 + build-windows: + name: build:windows + runs-on: windows-11-cuda-qt + timeout-minutes: 120 + steps: + - uses: actions/checkout@v4 + - name: Configure viewer build + shell: cmd + run: | + for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do set "VSPATH=%%i" + call "%VSPATH%\VC\Auxiliary\Build\vcvars64.bat" + cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="C:/deps;C:/Qt/6.11.1/msvc2022_64" + - name: Build viewer + shell: cmd + run: | + cmake --build build --target jfjoch_viewer + - name: Build installer (NSIS) + shell: cmd + run: | + cd build + cpack build-rpm: name: build:rpm (${{ matrix.distro }}) if: github.ref_type != 'workflow_dispatch'