-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install specific cmake version via github action
- Loading branch information
Showing
1 changed file
with
5 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,11 @@ jobs: | |
run: | | ||
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | ||
echo "hunter-dir=${{ github.workspace }}/.hunter" >> "$GITHUB_OUTPUT" | ||
echo "cmake-version=3.27.9" >> "$GITHUB_OUTPUT" | ||
echo "cmake-install-dir=/opt/cmake-3.27.9" >> "$GITHUB_OUTPUT" | ||
- uses: lukka/[email protected] | ||
if: runner.os == 'Linux' | ||
with: | ||
cmakeVersion: 3.27.9 | ||
|
||
- name: Dependencies Linux | ||
if: runner.os == 'Linux' | ||
|
@@ -62,10 +65,6 @@ jobs: | |
wget https://raw.githubusercontent.com/microsoft/msquic/main/src/inc/msquic_posix.h | ||
wget https://raw.githubusercontent.com/microsoft/msquic/main/src/inc/quic_sal_stub.h | ||
sudo mv msquic.h msquic_posix.h quic_sal_stub.h /usr/include/ | ||
wget --output-document=/tmp/cmake.sh https://github.com/Kitware/CMake/releases/download/v${{ steps.strings.outputs.cmake-version }}/cmake-${{ steps.strings.outputs.cmake-version }}-linux-x86_64.sh | ||
sudo mkdir ${{ steps.strings.outputs.cmake-install-dir }} | ||
sudo sh /tmp/cmake.sh --skip-license --prefix=${{ steps.strings.outputs.cmake-install-dir }} | ||
sudo ln --symbolic --force ${{ steps.strings.outputs.cmake-install-dir }}/bin/cmake /usr/local/bin/cmake | ||
- name: Cache Hunter Dependencies | ||
uses: actions/[email protected] | ||
|
@@ -86,8 +85,6 @@ jobs: | |
choco install directx-sdk | ||
- 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 --version; | ||
cmake -B ${{ steps.strings.outputs.build-output-dir }} | ||
|