aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-24 19:29:27 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-09-01 18:35:18 +0200
commit66795dbc90e5013eb5ddf941f7e462053a3d5229 (patch)
tree9d97ab188bfb1cb49c5ce3ec127b4483ac770a09
parentc813a084b6dc8206a9c7305bbb236e23edcb49e5 (diff)
downloadlibquotient-66795dbc90e5013eb5ddf941f7e462053a3d5229.tar.gz
libquotient-66795dbc90e5013eb5ddf941f7e462053a3d5229.zip
Fix bin path differences between POSIX and Windows
-rw-r--r--.github/workflows/ci.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 87bb5149..9d985fca 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -128,7 +128,14 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Configure libQuotient
- run: cmake -S $GITHUB_WORKSPACE -B build $CMAKE_ARGS -DQuotient_ENABLE_E2EE=${{ matrix.e2ee }}
+ run: |
+ if [[ '${{ runner.os }}' == 'Windows' ]]; then
+ BIN_DIR=.
+ else
+ BIN_DIR=bin
+ fi
+ echo "BIN_DIR=$BIN_DIR" >>$GITHUB_ENV
+ cmake -S $GITHUB_WORKSPACE -B build $CMAKE_ARGS -DQuotient_ENABLE_E2EE=${{ matrix.e2ee }}
- name: Regenerate API code
if: matrix.update-api
@@ -137,7 +144,7 @@ jobs:
- name: Build and install libQuotient
run: |
cmake --build build --target install
- ls ~/.local/bin/quotest
+ ls ~/.local/$BIN_DIR/quotest
- name: Run tests
env: