Skip to content

Commit c75cb45

Browse files
author
nikolai.shipilov
committed
Change install path
1 parent 53a9e04 commit c75cb45

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
generator: "Visual Studio 17 2022"
5353

5454
runs-on: ${{ matrix.os }}
55+
env:
56+
INSTALL_PREFIX: ${{ runner.temp }}/opendaq_install
5557

5658
steps:
5759
- name: Install additional dependencies
@@ -71,34 +73,21 @@ jobs:
7173
ref: other/module-extract-prep
7274
path: opendaq
7375

74-
- name: Configure and build
76+
- name: Configure, build and install openDAQ
7577
working-directory: opendaq
7678
run: |
7779
cmake -B build/output -S . -G "${{ matrix.generator }}" -DOPENDAQ_ENABLE_TESTS=OFF -DCMAKE_BUILD_TYPE=Release
7880
cmake --build build/output --config Release
81+
cmake --install build/output --config Release --prefix "${{ env.INSTALL_PREFIX }}"
7982
80-
81-
- name: Install opendaq
82-
working-directory: opendaq
83-
if: matrix.os == 'ubuntu-latest'
84-
run: |
85-
sudo cmake --build build/output --target install --config Release
86-
87-
- name: Install opendaq
88-
working-directory: opendaq
83+
- name: Add DLL path (Windows only)
8984
if: matrix.os == 'windows-latest'
9085
run: |
91-
cmake --build build/output --target install --config Release
92-
93-
- name: Checkout project repo
94-
uses: actions/checkout@v4
95-
with:
96-
ref: ${{ github.event.inputs.branch || github.event.client_payload.branch || github.ref }}
97-
path: module
98-
86+
echo "${{ env.INSTALL_PREFIX }}\\bin" >> $env:GITHUB_PATH
87+
9988
- name: Configure project with CMake
10089
working-directory: module
101-
run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DLT_STREAMING_MODULES_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release
90+
run: cmake -B build/output -S . -G "${{ matrix.generator }}" -DLT_STREAMING_MODULES_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ env.INSTALL_PREFIX }}"
10291

10392
- name: Build project with CMake
10493
working-directory: module

0 commit comments

Comments
 (0)