Skip to content

Commit

Permalink
Update cmake-single-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikohlsson authored Oct 25, 2024
1 parent bd3eb31 commit dac1a1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -27,10 +27,11 @@ jobs:
run: python3 -m pip install typing_extensions

- name: Configure CMake
working-directory: ${{github.workspace}}/native
# 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 -S ${{github.workspace}} -B ${{github.workspace}}/build -DCAFFE2_PERF_WITH_AVX2=ON
run: |
cmake -E copy ${{github.workspace}}/native/CMakeLists.txt ${{github.workspace}}/CMakeLists.txt
cmake -B ${{github.workspace}}/build -DCAFFE2_PERF_WITH_AVX2=ON
- name: Build
# Build your program with the given configuration
Expand Down

0 comments on commit dac1a1a

Please sign in to comment.