aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/build-foo/action.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/build-foo/action.yml')
-rw-r--r--.github/actions/build-foo/action.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/actions/build-foo/action.yml b/.github/actions/build-foo/action.yml
index c1a6fdd..3e50e67 100644
--- a/.github/actions/build-foo/action.yml
+++ b/.github/actions/build-foo/action.yml
@@ -1,6 +1,9 @@
name: Build foo.exe
description: Build foo.exe
inputs:
+ version:
+ description: Version to use
+ required: false
platform:
description: Target platform
required: true
@@ -8,6 +11,9 @@ runs:
using: composite
steps:
- run: |
+ $version = '${{ inputs.version }}'
+ $version = if ($version) { "-$version" } else { $version }
+
$flags = @()
if ('${{ matrix.platform }}' -eq 'x86') {
$flags += '-m32'
@@ -16,5 +22,6 @@ runs:
if ('${{ runner.os }}' -eq 'Linux') {
$flags += '-lpthread'
}
- g++ $flags
+
+ & "g++$version" $flags
shell: pwsh