From 00d21c8d6d202375761f332084e01661241376a9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Jan 2021 14:39:19 +0300 Subject: project.ci: --install picks the directory automatically --- .github/workflows/ci_appveyor.yml | 5 +++-- .github/workflows/ci_travis.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci_appveyor.yml b/.github/workflows/ci_appveyor.yml index 3033607..8427e43 100644 --- a/.github/workflows/ci_appveyor.yml +++ b/.github/workflows/ci_appveyor.yml @@ -57,11 +57,12 @@ jobs: - name: Build example project run: | - python -m project.ci.appveyor.cmake --install ..\install + python -m project.ci.appveyor.cmake --install - name: Run example project run: | - $foo_path = Join-Path (Split-Path (Get-Location).Path) install bin foo.exe + cd C:\projects\install\bin + $foo_path = Join-Path (Get-Location).Path foo.exe $relative = 'test.txt' $absolute = Join-Path (Get-Location).Path $relative diff --git a/.github/workflows/ci_travis.yml b/.github/workflows/ci_travis.yml index be2d1cb..060970d 100644 --- a/.github/workflows/ci_travis.yml +++ b/.github/workflows/ci_travis.yml @@ -51,11 +51,12 @@ jobs: - name: Build example project run: | - python -m project.ci.travis.cmake --install ../install + python -m project.ci.travis.cmake --install - name: Run example project run: | - $foo_path = Join-Path (Split-Path (Get-Location).Path) install bin foo + cd "$env:HOME/install/bin" + $foo_path = Join-Path (Get-Location).Path foo $relative = 'test.txt' $absolute = Join-Path (Get-Location).Path $relative -- cgit v1.2.3