Skip to content

Commit

Permalink
ci: update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiang committed Nov 1, 2022
1 parent 8312f51 commit 49a4751
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install system packages
- name: Upgrade cmake
run: brew upgrade cmake

- name: Install wget manually
run: brew install wget

- name: Install googletest manually
run: |
wget https://github.com/google/googletest/archive/release-1.10.0.tar.gz
tar xf release-1.10.0.tar.gz
(cd googletest-release-1.10.0 &&
cmake -DBUILD_SHARED_LIBS=ON . &&
sudo make install)
run: brew install googletest

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_MINISTL_TEST=ON -DCMAKE_CXX_FLAGS="-Werror"
Expand All @@ -36,5 +34,4 @@ jobs:

- name: Test
working-directory: ${{github.workspace}}/build/Test
run: ./Test

run: ./Test

0 comments on commit 49a4751

Please sign in to comment.