aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/check-boost-bootstrapped/action.yml
blob: 91b1ff60f77829da2069828bfff69ee0edc27ca9 (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
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 (Get-ChildItem env:BOOST_DIR).Value 'bootstrap.log'
        if (Test-Path $path -Type Leaf) {
            cat $path
        }
      shell: pwsh
    - run: |
        echo ''
        echo '----------------------------------------------------------------'
        echo 'project-config.jam'
        echo '----------------------------------------------------------------'
        $path = Join-Path (Get-ChildItem env:BOOST_DIR).Value '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'
        if ((Get-ChildItem env:CI_HOST_WINDOWS).Value) {
            $name += '.exe'
        }
        $path = Join-Path (Get-ChildItem env:BOOST_DIR).Value $name

        if (!(Test-Path $path -Type Leaf)) {
            throw "b2 executable wasn't found"
        }
      shell: pwsh