mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-17 22:05:35 +08:00
Install and verify CMake 3 in CI workflow
This commit is contained in:
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
@@ -145,6 +145,25 @@ jobs:
|
|||||||
os: ${{ fromJSON(needs.define-matrix.outputs.os) }}
|
os: ${{ fromJSON(needs.define-matrix.outputs.os) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- name: "Install CMake 3"
|
||||||
|
if: ${{ startsWith(matrix.os, 'macos-13') }}
|
||||||
|
run: |
|
||||||
|
curl -o cmake.tgz -#fSL https://github.com/Kitware/CMake/releases/download/v3.31.8/cmake-3.31.8-macos-universal.tar.gz
|
||||||
|
mkdir -p /opt/cmake
|
||||||
|
tar -xzf cmake.tgz -C /opt/cmake --strip-components 1
|
||||||
|
echo "/opt/cmake/CMake.app/Contents/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: "Test CMake 3"
|
||||||
|
if: ${{ startsWith(matrix.os, 'macos-13') }}
|
||||||
|
run: |
|
||||||
|
if [ "$(which cmake)" != "/opt/cmake/CMake.app/Contents/bin/cmake" ]; then
|
||||||
|
echo "CMake path: $(which cmake)"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Good cmake"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: "Update runner packages"
|
- name: "Update runner packages"
|
||||||
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
||||||
run: sudo apt-get update && sudo apt-get install -y ca-certificates
|
run: sudo apt-get update && sudo apt-get install -y ca-certificates
|
||||||
|
|||||||
Reference in New Issue
Block a user