Mercurial > octave
changeset 29888:f2c6ea6c4abc
GitHub-CI: Don't use absolute paths to user home on Ubuntu runner.
* .github/workflows/make.yaml (ubuntu): Use variables for user paths on runner.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Fri, 16 Jul 2021 16:30:53 +0200 |
parents | be669d935fb6 |
children | 3ab696e02f55 |
files | .github/workflows/make.yaml |
diffstat | 1 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/make.yaml Thu Jul 15 16:12:24 2021 -0400 +++ b/.github/workflows/make.yaml Fri Jul 16 16:30:53 2021 +0200 @@ -68,7 +68,7 @@ # See: https://github.com/actions/cache/issues/92 uses: pat-s/always-upload-cache@v2 with: - path: /home/runner/.ccache + path: ~/.ccache key: ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }}:${{ steps.ccache_cache_timestamp.outputs.timestamp }}:${{ github.sha }} restore-keys: | ccache:${{ matrix.os }}:${{ matrix.compiler }}:${{ github.ref }} @@ -78,8 +78,8 @@ env: CCACHE_MAX: ${{ matrix.ccache-max }} run: | - test -d /home/runner/.ccache || mkdir /home/runner/.ccache - echo "max_size = $CCACHE_MAX" >> /home/runner/.ccache/ccache.conf + test -d ~/.ccache || mkdir ~/.ccache + echo "max_size = $CCACHE_MAX" >> ~/.ccache/ccache.conf ccache -s - name: bootstrap @@ -104,24 +104,18 @@ LDFLAGS="-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial" - name: build - env: - XDG_RUNTIME_DIR: "/home/runner/tmp" # Parallel make seems to fail intermittently when creating the figures # for the manual. The error message says it fails to connect to a # display. Maybe an xvfb issue? # Use single job make for now which seems to work more reliably. - run: | - test -d $XDG_RUNTIME_DIR || mkdir $XDG_RUNTIME_DIR - xvfb-run -a make -C ./.build all V=1 + run: XDG_RUNTIME_DIR=$RUNNER_TEMP xvfb-run -a make -C ./.build all V=1 - name: ccache status run: ccache -s - name: check timeout-minutes: 60 - env: - XDG_RUNTIME_DIR: "/home/runner/tmp" - run: xvfb-run -a make -C ./.build check | tee ./test-suite.log + run: XDG_RUNTIME_DIR=$RUNNER_TEMP xvfb-run -a make -C ./.build check | tee ./test-suite.log - name: display test log continue-on-error: true