diff options
| author | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-09-13 10:13:30 +0300 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-09-23 12:35:33 -0700 |
| commit | 726d9c0b61ecdf0fbe1fb4f0d8c883eaac8108d0 (patch) | |
| tree | c3693e4ab2305f4bda50323cf9a6d01616855f97 /.github/workflows | |
| parent | 191b801f1d8524d20fa134ab23c6c7080f29c126 (diff) | |
| download | meson-726d9c0b61ecdf0fbe1fb4f0d8c883eaac8108d0.tar.gz | |
.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>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/os_comp.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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 |
