Skip to content

Commit 4c3ce8a

Browse files
committed
Try fixing errors.
1 parent a24cb4d commit 4c3ce8a

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ jobs:
5757
run: |
5858
brew install llvm ninja
5959
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"
6260
6361
- name: Set up Python
6462
uses: actions/setup-python@v5
@@ -73,7 +71,14 @@ jobs:
7371
- name: Configure CMake
7472
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
7573
# 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 }}"
7782
shell: bash
7883

7984
- name: CMake Build

.github/workflows/codeql.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ jobs:
6565
- name: Install dependencies
6666
run: pip install .
6767
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+
6888
# Initializes the CodeQL tools for scanning.
6989
- name: Initialize CodeQL
7090
uses: github/codeql-action/init@v3

0 commit comments

Comments
 (0)