Skip to content

Commit

Permalink
use variable for cmake directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Dec 23, 2023
1 parent 4feecb1 commit da22c3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ 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"
- name: Dependencies Linux
if: runner.os == 'Linux'
Expand All @@ -42,10 +44,10 @@ jobs:
libxrandr-dev \
libxrender-dev \
libxxf86vm-dev
wget --output-document=/tmp/cmake.sh https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh
sudo mkdir /opt/cmake
sudo sh /tmp/cmake.sh --skip-license --prefix=/opt/cmake-3.27.9
sudo ln -s /opt/cmake-3.27.9/bin/cmake /usr/local/bin/cmake
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 -s ${{ steps.strings.outputs.cmake-install-dir }}/bin/cmake /usr/local/bin/cmake
- name: Cache Hunter Dependencies
uses: actions/cache@v3.3.2
Expand Down

0 comments on commit da22c3f

Please sign in to comment.