Link to this branch's source code. Install sDNA module main as script too #48
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: "CMake, GCC, & Ubuntu. Compile .so." | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "Cross_platform" ] | |
pull_request: | |
branches: [ "Cross_platform" ] | |
env: | |
CONFIGURATION: Release | |
PLATFORM: x64 | |
BOOST_VERSION: '1.8.3' | |
jobs: | |
build_and_upload_installer: | |
name: "Compile on Ubuntu with CMake & GCC" | |
runs-on: "ubuntu-24.04" | |
# outputs: | |
# installer_file_name: ${{ steps.output_installer_file_name.outputs.name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Git and Ninja | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git ninja-build | |
- name: Create Ninja build system from CMake | |
run: > | |
cmake | |
-G "Ninja Multi-Config" | |
-D USE_ZIG=OFF | |
-D BUNDLE_PYSHP=ON | |
-B build_output_cmake_gcc | |
-S . | |
- name: Build sDNA | |
run: | | |
cmake --build build_output_cmake_gcc --config Release | |
- name: upload_output | |
id: installer-upload-step | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output_gcc_linux | |
path: output | |
test_installer: | |
needs: build_and_upload_installer | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ['3.9', '3.10', '3.11', '3.12'] | |
name: "Download and run sDNA installer, and run diff tests on it. " | |
runs-on: "ubuntu-24.04" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install R | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y r-cran-optparse r-cran-sjstats | |
- name: Download output tree built in previous job | |
uses: actions/download-artifact@v4 | |
with: | |
name: output_gcc_linux | |
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 | |
sdnadll: '${{ github.workspace }}/output/Release/x64/sdna_vs2008.so' | |
sdna_debug: "" | |
shell: bash | |