Skip to content

Link to this branches source code. Install sDNA module main as script #133

Link to this branches source code. Install sDNA module main as script

Link to this branches source code. Install sDNA module main as script #133

name: "Compile with CMake, and Zig for Windows, and test"
on:
workflow_dispatch:
push:
branches: [ "main", "Cross_platform" ]
pull_request:
branches: [ "main", "Cross_platform", ]
env:
CONFIGURATION: Release
PLATFORM: x64
BOOST_VERSION: '1.8.3'
jobs:
build_and_upload_installer:
name: Build output on Windows with Zig C++ (Ninja and CMake)
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.13.0
- name: Install Ninja
run: pip install ninja
- name: Build sDNA output with Zig and Ninja
shell: cmd
# CMake errors if given c:\vcpkg and /scripts/buildsystems/vcpkg.cmake
# so can't use set VCPKG_ROOT=%VCPKG_INSTALLATION_ROOT%
run: |
set VCPKG_ROOT=C:/vcpkg
.\create_output_with_Zig.bat
- name: upload_output
id: installer-upload-step
uses: actions/upload-artifact@v4
with:
name: output_zig_windows
path: output
test_installer:
needs: build_and_upload_installer
strategy:
fail-fast: false
matrix:
python_version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
name: "Download and run sDNA installer, and run diff tests on it. "
runs-on: windows-2022
# Note: The Windows server 2022 Github runner image already includes
# Python (currently 6 versions from 3.7 to 3.12) and a couple of
# VC++ redistributables. Desktop users may need to install these
# themselves, in addition to sDNA.
#
# https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md
#
steps:
- uses: actions/checkout@v4
- name: Download output tree built in previous job
uses: actions/download-artifact@v4
with:
name: output_zig_windows
path: output
- name: Run regression tests
uses: ./.github/actions/run_regression_tests
with:
python_version: ${{ matrix.python_version }}
DONT_TEST_N_LINK_SUBSYSTEMS_ORDER: 1
ALLOW_NEGATIVE_FORMULA_ERROR_ON_ANY_LINK_PRESENT: 1
USED_ZIG: 1
sdnadll: 'output\Release\x64\sdna_vs2008.dll'
sdna_debug: ""