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



















                                                                                    
name: Build foo.exe
description: Build foo.exe (on Cygwin)
inputs:
  platform:
    description: Target platform
    required: true
runs:
  using: composite
  steps:
    - run: |
        IFS= read -r src_dir <<'EOF'
        ${{ github.workspace }}
        EOF
        echo "$src_dir"
        src_dir="$( cygpath -ua "$src_dir" )"
        cd -- "$src_dir"
        arch=
        [ '${{ matrix.platform }}' == 'x86' ] && arch=-m32
        g++ $arch -std=c++14 -o foo foo.cpp
      shell: C:\tools\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'