Skip to content

Commit

Permalink
Trying OS-specific install of Catch2
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Jul 2, 2024
1 parent 954563e commit 6558121
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,27 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Catch2 v3 from Source
- name: Install Catch2 v3 from Source (ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
git checkout "v3.6.0"
mkdir build && cd build
cmake .. -DBUILD_TESTING=OFF
cmake --build . --target install
sudo cmake --build . --target install
- name: Install Catch2 v3 from Source (windows)
if: matrix.os == 'windows-latest'
run: |
git clone https://github.com/catchorg/Catch2.git
cd Catch2
git checkout "v3.6.0"
mkdir build && cd build
cmake .. -DBUILD_TESTING=OFF
cmake --build . --target install
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs.
# These step outputs can be used throughout the workflow file.
Expand Down

0 comments on commit 6558121

Please sign in to comment.