aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/.github/actions/build-foo/action.yml
blob: 50f3f1e4e5b3faf69d66b6fc09a2ebb82cb2ad61 (plain) (tree)



















                                                       
name: Build foo.exe
description: Build foo.exe
inputs:
  platform:
    description: Target platform
    required: true
runs:
  using: composite
  steps:
    - run: |
        $flags = @()
        if ('${{ matrix.platform }}' -eq 'x86') {
            $flags += '-m32'
        }
        $flags += '-std=c++14','-o','foo.exe','foo.cpp'
        if ('${{ runner.os }}' -eq 'Linux') {
            $flags += '-lpthread'
        }
        clang++ $flags
      shell: pwsh