Skip to content

Commit

Permalink
Try fixing errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCG-coder committed Jun 16, 2024
1 parent 40d362f commit d730d36
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:
run: |
brew install llvm ninja
echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> "$GITHUB_ENV"
echo "CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.c_compiler }}" >> "$GITHUB_ENV"
echo "CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.cpp_compiler }}" >> "$GITHUB_ENV"
- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -73,7 +71,14 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
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
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
-DCMAKE_C_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.c_compiler }}"
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/${{ matrix.cpp_compiler }}"
shell: bash

- name: CMake Build
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,26 @@ jobs:
- name: Install dependencies
run: pip install .
shell: bash

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/cmake-build" >> "$GITHUB_OUTPUT"
echo "py-build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
echo "CMAKE_C_COMPILER=clang" >> "$GITHUB_ENV"
echo "CMAKE_CXX_COMPILER=clang++" >> "$GITHUB_ENV"
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Install LLVM
run: |
brew install llvm ninja
echo "PATH=$(brew --prefix llvm)/bin:$PATH" >> "$GITHUB_ENV"
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down

0 comments on commit d730d36

Please sign in to comment.