Skip to content

Commit e64ac4d

Browse files
committed
Refactors environment variable handling in Docker commands
Updates Docker command syntax to use `--env` flags for setting environment variables, improving readability and maintainability in the workflow configuration. Signed-off-by: Christopher Turner <christopher.g.turner@intel.com>
1 parent 4027bce commit e64ac4d

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/testbench.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,19 @@ jobs:
5353
- name: build test topologies
5454
continue-on-error: true
5555
run: |
56-
SOF_WORKSPACE=/home/sof/work/sof.git \
57-
PATH=/home/sof/work/sof.git/tools/bin:$PATH \
58-
PKG_CONFIG_PATH=/home/sof/work/sof.git/tools/lib/pkgconfig:$PKG_CONFIG_PATH \
59-
LD_LIBRARY_PATH=/home/sof/work/sof.git/tools/lib:$LD_LIBRARY_PATH \
60-
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh ./scripts/build-tools.sh -A -Y ||
56+
./scripts/docker-run.sh \
57+
--env SOF_WORKSPACE=/home/sof/work/sof.git \
58+
--env PATH=/home/sof/work/sof.git/tools/bin:$PATH \
59+
--env PKG_CONFIG_PATH=/home/sof/work/sof.git/tools/lib/pkgconfig:$PKG_CONFIG_PATH \
60+
--env LD_LIBRARY_PATH=/home/sof/work/sof.git/tools/lib:$LD_LIBRARY_PATH \
61+
./scripts/build-tools.sh -A -Y ||
6162
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no \
62-
SOF_WORKSPACE=/home/sof/work/sof.git \
63-
PATH=/home/sof/work/sof.git/tools/bin:$PATH \
64-
PKG_CONFIG_PATH=/home/sof/work/sof.git/tools/lib/pkgconfig:$PKG_CONFIG_PATH \
65-
LD_LIBRARY_PATH=/home/sof/work/sof.git/tools/lib:$LD_LIBRARY_PATH \
66-
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh ./scripts/build-tools.sh -A -Y
63+
./scripts/docker-run.sh \
64+
--env SOF_WORKSPACE=/home/sof/work/sof.git \
65+
--env PATH=/home/sof/work/sof.git/tools/bin:$PATH \
66+
--env PKG_CONFIG_PATH=/home/sof/work/sof.git/tools/lib/pkgconfig:$PKG_CONFIG_PATH \
67+
--env LD_LIBRARY_PATH=/home/sof/work/sof.git/tools/lib:$LD_LIBRARY_PATH \
68+
./scripts/build-tools.sh -A -Y
6769
6870
# Verify alsatplg version
6971
- name: verify alsatplg version

0 commit comments

Comments
 (0)