aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/build-threads
diff options
context:
space:
mode:
Diffstat (limited to '.github/actions/build-threads')
-rw-r--r--.github/actions/build-threads/action.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/actions/build-threads/action.yml b/.github/actions/build-threads/action.yml
index 8c754b0..86515f7 100644
--- a/.github/actions/build-threads/action.yml
+++ b/.github/actions/build-threads/action.yml
@@ -11,12 +11,12 @@ inputs:
runs:
using: composite
steps:
- - run: |
- $version = '${{ inputs.version }}'
- $version = if ($version) { "-$version" } else { $version }
-
+ - env:
+ ARG_BINARY: ${{ inputs.binary }}
+ ARG_PLATFORM: ${{ inputs.platform }}
+ run: |
$flags = @()
- if ('${{ matrix.platform }}' -eq 'x86') {
+ if ($env:ARG_PLATFORM -eq 'x86') {
$flags += '-m32'
}
$flags += '-std=c++14','-o','test/threads.exe','test/threads.cpp'
@@ -24,5 +24,5 @@ runs:
$flags += '-lpthread'
}
- & '${{ inputs.binary }}' $flags
+ & $env:ARG_BINARY $flags
shell: pwsh