From b1bfbd3501b6521d3204b5d060f88a8f6153f945 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 19 Oct 2026 04:48:26 +0300 Subject: {actions,workflows}: fail on unset environment variables The $env:NAME syntax fails to produce an error if $NAME is not defined, regardless of Set-StrictMode/Set-PSDebug. Also, while I'm at it, clean up the actions/workflows code a little bit. --- .github/workflows/boost_toolsets.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to '.github/workflows/boost_toolsets.yml') diff --git a/.github/workflows/boost_toolsets.yml b/.github/workflows/boost_toolsets.yml index 924e3d7..e9d0383 100644 --- a/.github/workflows/boost_toolsets.yml +++ b/.github/workflows/boost_toolsets.yml @@ -85,15 +85,15 @@ jobs: path: '${{ runner.workspace }}/boost/boost_*.tar.gz' key: 'boost_${{ matrix.boost-version }}' - - name: Clean up PATH - uses: egor-tensin/cleanup-path@v5 - if: runner.os == 'Windows' - - name: Set common variables uses: $/.github/actions/common-variables with: toolset: ${{ matrix.toolset }} + - name: Clean up PATH + uses: egor-tensin/cleanup-path@v5 + if: env.CI_HOST_WINDOWS + - name: Set up Python uses: actions/setup-python@v7 with: @@ -120,9 +120,6 @@ jobs: - name: Set up software environment uses: $/.github/actions/software-environment - with: - toolset: ${{ matrix.toolset }} - platform: ${{ matrix.platform }} - name: Set up Visual Studio uses: egor-tensin/vs-shell@v2 @@ -158,8 +155,8 @@ jobs: id: build_example uses: $/.github/actions/build-example with: - src-dir: test/examples/boost - boost-dir: ${{ env.BOOST_DIR }} + src_dir: test/examples/boost + boost_dir: ${{ env.BOOST_DIR }} toolset: ${{ matrix.toolset }} platform: ${{ matrix.platform }} configuration: ${{ matrix.configuration }} @@ -167,15 +164,15 @@ jobs: - name: Verify runtime library linkage uses: $/.github/actions/check-runtime-library with: - path: ${{ steps.build_example.outputs.install-dir }} + install_dir: ${{ steps.build_example.outputs.install_dir }} - name: Verify architecture uses: $/.github/actions/check-arch with: - path: ${{ steps.build_example.outputs.install-dir }} + install_dir: ${{ steps.build_example.outputs.install_dir }} expected: ${{ matrix.platform }} - name: Run examples/boost uses: $/.github/actions/run-example-boost with: - path: ${{ steps.build_example.outputs.install-dir }} + install_dir: ${{ steps.build_example.outputs.install_dir }} -- cgit v1.3