From 726d9c0b61ecdf0fbe1fb4f0d8c883eaac8108d0 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Fri, 13 Sep 2024 10:13:30 +0300 Subject: .github/workflows/os_comp.yml: set HOME to /root on OpenSUSE The D compiler and associated tools are installed under /root and the setup script run during the actual testing expects that `~` will expand to the same path. Because github overrides HOME the dmd environment setup script will not be run which leads to all D related tests being skipped, even though the whole test suite reports as having finished successfully. Signed-off-by: Andrei Horodniceanu --- .github/workflows/os_comp.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/os_comp.yml b/.github/workflows/os_comp.yml index 05e4f072d..0830a05e5 100644 --- a/.github/workflows/os_comp.yml +++ b/.github/workflows/os_comp.yml @@ -60,7 +60,14 @@ jobs: # All environment variables are stored inside the docker image in /ci/env_vars.sh # They are defined in the `env` section in each image.json. CI_ARGS should be set # via the `args` array ub the image.json - run: bash -c 'source /ci/env_vars.sh; cd $GITHUB_WORKSPACE; ./tools/run_with_cov.py ./run_tests.py $CI_ARGS' + shell: bash + run: | + # dmd is installed under /root on OpenSUSE + [[ ${{ matrix.cfg.id }} == opensuse ]] && export HOME=/root + + source /ci/env_vars.sh + cd $GITHUB_WORKSPACE + ./tools/run_with_cov.py ./run_tests.py $CI_ARGS - name: Aggregate coverage reports run: ./ci/combine_cov.sh -- cgit v1.2.3