diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-03 20:41:10 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-03 21:26:12 +0200 |
commit | b3c440a0e582b58bdfd984041e031cf061690648 (patch) | |
tree | 2ce44a3022f912213d5ddbbf9e1117b8b2b49f9b /.github | |
parent | fix PyLint warnings (diff) | |
download | cmake-common-b3c440a0e582b58bdfd984041e031cf061690648.tar.gz cmake-common-b3c440a0e582b58bdfd984041e031cf061690648.zip |
project.cmake: require the build dir argument
It doesn't make a lot of sense for the build dir argument to be
optional. There's still a placeholder you can use to build in a
temporary directory.
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/build-example/action.yml | 2 | ||||
-rw-r--r-- | .github/workflows/basic.yml | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/.github/actions/build-example/action.yml b/.github/actions/build-example/action.yml index 60ca2e8..ba7b43f 100644 --- a/.github/actions/build-example/action.yml +++ b/.github/actions/build-example/action.yml @@ -63,7 +63,7 @@ runs: $args += '--boost',$boost_dir } - $args += '--',$src_dir + $args += '--',$src_dir,'TMP' $env:VERBOSE = 1 & $python -m project.cmake.build $args shell: pwsh diff --git a/.github/workflows/basic.yml b/.github/workflows/basic.yml index 1b0f42a..d5db93d 100644 --- a/.github/workflows/basic.yml +++ b/.github/workflows/basic.yml @@ -48,12 +48,12 @@ jobs: key: 'boost_${{ matrix.boost-version }}' - name: Build Boost run: | - python -m project.boost.download --cache . '${{ matrix.boost-version }}' boost - python -m project.boost.build -- boost --with-filesystem + python -m project.boost.download --cache . '${{ matrix.boost-version }}' boost/ + python -m project.boost.build -- boost/ --with-filesystem - name: Build example project run: | $src_dir = Join-Path examples boost - python -m project.cmake.build --boost boost --install install -- $src_dir + python -m project.cmake.build --boost boost/ --install install/ -- $src_dir build/ - name: Run example project run: ./.ci/run_foo.ps1 (Join-Path (Get-Location).Path install bin foo) @@ -93,12 +93,12 @@ jobs: cmake-build --version - name: Build Boost run: | - boost-download --cache . '${{ matrix.boost-version }}' boost - boost-build -- boost --with-filesystem + boost-download --cache . '${{ matrix.boost-version }}' boost/ + boost-build -- boost/ --with-filesystem - name: Build example project run: | $src_dir = Join-Path examples boost - cmake-build --boost boost --install install -- $src_dir + cmake-build --boost boost/ --install install/ -- $src_dir build/ - name: Run example project run: ./.ci/run_foo.ps1 (Join-Path (Get-Location).Path install bin foo) |