-
Notifications
You must be signed in to change notification settings - Fork 1
97 lines (68 loc) · 2.03 KB
/
compile_so_with_gcc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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