From a5b319cfd41a63a8c865db379a35da8508b1a084 Mon Sep 17 00:00:00 2001 From: Michal Checinski Date: Wed, 3 Apr 2024 14:48:02 +0200 Subject: [PATCH] Add difgferent deps installation for different oses --- .github/workflows/build-cpp.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.yml index 84cce6e7e..dbf0c3200 100644 --- a/.github/workflows/build-cpp.yml +++ b/.github/workflows/build-cpp.yml @@ -40,11 +40,24 @@ jobs: - name: Checkout Repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: install dependencies + - name: install dependencies linux + if: matrix.settings.os == 'ubuntu-22.04' run: | sudo apt-get install -y nlohmann-json3-dev sudo apt-get install -y libboost-all-dev + - name: install dependencies macos + if: matrix.settings.os == 'macos-12' + run: | + brew install nlohmann-json + brew install boost + + - name: install dependencies windows + if: matrix.settings.os == 'windows-2022' + run: | + choco install nlohmann-json + choco install boost + - name: Download schemas uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4 with: