Skip to content

Commit

Permalink
Mabe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchecinski committed Apr 4, 2024
1 parent 8cd57c0 commit 1091107
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
pull_request:
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
generate-schemas:
uses: ./.github/workflows/generate_schemas.yml
Expand Down Expand Up @@ -96,8 +92,9 @@ jobs:
name: libbitwarden_c_files-${{ matrix.settings.target }}
path: languages/cpp/include

- name: Build
- name: Build unix
working-directory: languages/cpp
if: runner.os == 'macOS' || runner.os == 'Linux'
run: |
if [[ '${{ runner.os }}' == 'macOS' ]]; then
export DNLOHMANN_PATH=/usr/local/opt/nlohmann-json
Expand All @@ -109,18 +106,25 @@ jobs:
export DBOOST_PATH=/usr/share/doc/libboost-all-dev
fi
if [[ '${{ runner.os }}' == 'Windows' ]]; then
export DNLOHMANN_PATH=C:\Users\runneradmin\miniconda3\envs\conda-env\nlohmann_json
export DBOOST_PATH=C:\Users\runneradmin\miniconda3\envs\conda-env\boost
fi
ls include
mkdir build
cd build
cmake .. -DNLOHMANN=$DNLOHMANN_PATH -DBOOST=$DBOOST_PATH -DTARGET=include/libbitwarden_c.dylib
cmake --build .
- name: Build windows
if: runner.os == 'Windows'
working-directory: languages/cpp
run: |
set DNLOHMANN_PATH=C:\Users\runneradmin\miniconda3\envs\conda-env\nlohmann_json
set DBOOST_PATH=C:\Users\runneradmin\miniconda3\envs\conda-env\boost
mkdir build
cd build
cmake .. -DNLOHMANN=$DNLOHMANN_PATH -DBOOST=$DBOOST_PATH -DTARGET=include/libbitwarden_c.dll
cmake --build .
- name: Upload C++ package for ${{ matrix.settings.target }}
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
Expand Down

0 comments on commit 1091107

Please sign in to comment.