Skip to content

Commit 6548d84

Browse files
pebenitostephensmalley
authored andcommitted
CI: Add explicit output variable for build-userspace action.
Downstream users won't have to rely on DESTDIR being set in the environment. Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
1 parent fed1bea commit 6548d84

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/actions/build-userspace/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ inputs:
1616
required: false
1717
default: ''
1818

19+
outputs:
20+
DESTDIR:
21+
description: The destination directory for the build
22+
value: ${{ steps.config-env.outputs.DESTDIR }}
23+
1924
runs:
2025
using: composite
2126
steps:
@@ -64,12 +69,14 @@ runs:
6469
6570
- name: Configure the environment
6671
shell: bash
72+
id: config-env
6773
run: |
6874
echo "::group::Configure the environment"
6975
DESTDIR=/tmp/destdir
7076
echo "PYTHON=python" >> $GITHUB_ENV
7177
echo "RUBY=ruby" >> $GITHUB_ENV
7278
echo "DESTDIR=$DESTDIR" >> $GITHUB_ENV
79+
echo "DESTDIR=$DESTDIR" >> $GITHUB_OUTPUT
7380
7481
CC=${{ inputs.compiler }}
7582
if [ "${{ inputs.other }}" = "linker-bfd" ] ; then

0 commit comments

Comments
 (0)