blob: c1a6fdd3a30fc009c096db78e11dd292df095469 (
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','foo.cpp'
if ('${{ runner.os }}' -eq 'Linux') {
$flags += '-lpthread'
}
g++ $flags
shell: pwsh
|