.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 <a.horodniceanu@proton.me>
pull/13709/head
Andrei Horodniceanu 2 months ago committed by Dylan Baker
parent 191b801f1d
commit 726d9c0b61
  1. 9
      .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

Loading…
Cancel
Save