Skip to content

Commit

Permalink
without toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 13, 2024
1 parent de71fa6 commit b05a4c0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,14 @@ jobs:
with:
vcpkgDirectory: '${{github.workspace}}/scripts/vcpkg'

- name: "(vcpkg only) Setup CMake Toolchain file"
if: ${{ matrix.package_manager == 'vcpkg' }}
run: |
export TOOLCHAIN_FILE="${{github.workspace}}/scripts/vcpkg/scripts/buildsystems/vcpkg.cmake"
echo "${{github.workspace}}/scripts/vcpkg" >> $GITHUB_PATH
echo "TOOLCHAIN_FILE=$TOOLCHAIN_FILE" >> $GITHUB_ENV
- name: Install Dependencies
run: |
echo "vcpkg location: $(which vcpkg)"
echo "CMake toolchain file: $TOOLCHAIN_FILE"
$GITHUB_WORKSPACE/scripts/install_prerequisites.sh -v -u -m ${{matrix.package_manager}} all
- name: Configure CMake
run: |
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_TOOLCHAIN_FILE="$TOOLCHAIN_FILE" -DBUILD_TESTS=ON
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=ON
- name: Build
run: cmake --build build --config $BUILD_TYPE
Expand Down

0 comments on commit b05a4c0

Please sign in to comment.