File tree Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Expand file tree Collapse file tree 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 57
57
run : |
58
58
brew install llvm ninja
59
59
echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> "$GITHUB_ENV"
60
- echo "CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.c_compiler }}" >> "$GITHUB_ENV"
61
- echo "CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.cpp_compiler }}" >> "$GITHUB_ENV"
62
60
63
61
- name : Set up Python
64
62
uses : actions/setup-python@v5
73
71
- name : Configure CMake
74
72
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
75
73
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
76
- run : cmake -B "${{github.workspace}}/build" -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") -DPYTHON_EXECUTABLE:FILEPATH=`which python` -DSTP_BUILD_COMPONENT_EXECUTABLE=True
74
+ run : >
75
+ cmake -B "${{github.workspace}}/build"
76
+ -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
77
+ -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
78
+ -DPYTHON_EXECUTABLE:FILEPATH=`which python`
79
+ -DSTP_BUILD_COMPONENT_EXECUTABLE=True
80
+ -DCMAKE_C_COMPILER="$(brew --prefix llvm)/bin/${{ matrix.c_compiler }}"
81
+ -DCMAKE_CXX_COMPILER="$(brew --prefix llvm)/bin/${{ matrix.cpp_compiler }}"
77
82
shell : bash
78
83
79
84
- name : CMake Build
Original file line number Diff line number Diff line change 65
65
- name : Install dependencies
66
66
run : pip install .
67
67
shell : bash
68
+
69
+ - name : Set reusable strings
70
+ # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
71
+ id : strings
72
+ shell : bash
73
+ run : |
74
+ echo "build-output-dir=${{ github.workspace }}/cmake-build" >> "$GITHUB_OUTPUT"
75
+ echo "py-build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
76
+ echo "CMAKE_C_COMPILER=clang" >> "$GITHUB_ENV"
77
+ echo "CMAKE_CXX_COMPILER=clang++" >> "$GITHUB_ENV"
78
+
79
+ - name : Set up Homebrew
80
+ id : set-up-homebrew
81
+ uses : Homebrew/actions/setup-homebrew@master
82
+
83
+ - name : Install LLVM
84
+ run : |
85
+ brew install llvm ninja
86
+ echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> "$GITHUB_ENV"
87
+
68
88
# Initializes the CodeQL tools for scanning.
69
89
- name : Initialize CodeQL
70
90
uses : github/codeql-action/init@v3
You can’t perform that action at this time.
0 commit comments