aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/check-boost-bootstrapped/action.yml
blob: 73f44a906d254f799013a5bf74e4c76f08e538d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Check that Boost was bootstrapped
description: Check that Boost was bootstrapped
runs:
  using: composite
  steps:
    - run: |
        echo '----------------------------------------------------------------'
        echo 'bootstrap.log'
        echo '----------------------------------------------------------------'
        $path = Join-Path $env:BOOST_DIR 'bootstrap.log'
        cat $path
      shell: pwsh
    - run: |
        echo ''
        echo '----------------------------------------------------------------'
        echo 'project-config.jam'
        echo '----------------------------------------------------------------'
        $path = Join-Path $env:BOOST_DIR 'project-config.jam'
        if (Test-Path $path -Type Leaf) {
            cat $path
        }
      shell: pwsh
    - run: |
        echo ''
        echo '----------------------------------------------------------------'
        echo 'Checking that b2 executable was built'
        echo '----------------------------------------------------------------'
        $name = 'b2'
        $path = Join-Path $env:BOOST_DIR $name

        $exists_plain = Test-Path $path -Type Leaf
        $exists_exe = Test-Path "${path}.exe" -Type Leaf
        $exists = if ($env:CI_HOST_CYGWIN) {
            $exists_plain -or $exists_exe
        } elseif ($env:CI_HOST_WINDOWS) {
            $exists_exe
        } else {
            $exists_plain
        }

        if (-not $exists) {
            throw "b2 executable wasn't found"
        }
      shell: pwsh