Skip to content

Commit

Permalink
AVX2 wrokflows build is defaulted from the preset
Browse files Browse the repository at this point in the history
  • Loading branch information
SamirDroubi committed Jan 4, 2024
1 parent 843ab4a commit b507561
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/avx2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ 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 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --preset avx2
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --preset avx2

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build/avx2 --config ${{env.BUILD_TYPE}}

- name: Test Codegen
working-directory: ${{github.workspace}}/build
working-directory: ${{github.workspace}}/build/avx2
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --test-dir ${{github.workspace}}/build -C ${{env.BUILD_TYPE}} -R codegen
run: ctest --test-dir ${{github.workspace}}/build/avx2 -C ${{env.BUILD_TYPE}} -R codegen

- name: Test Correctness
working-directory: ${{github.workspace}}/build
working-directory: ${{github.workspace}}/build/avx2
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --test-dir ${{github.workspace}}/build -C ${{env.BUILD_TYPE}} -R correctness
run: ctest --test-dir ${{github.workspace}}/build/avx2 -C ${{env.BUILD_TYPE}} -R correctness
4 changes: 2 additions & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_BUILD_TYPE": "Release",
"BLA_VENDOR": "Apple",
"TARGET_ARCH": "neon"
"TARGET_ARCH": "apple-silicon"
}
},
{
Expand All @@ -27,7 +27,7 @@
"binaryDir": "${sourceDir}/build/linux-arm64",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"TARGET_ARCH": "neon"
"TARGET_ARCH": "linux-arm64"
}
},
{
Expand Down

0 comments on commit b507561

Please sign in to comment.