diff --git a/.github/workflows/ci-alpine.yml b/.github/workflows/ci-alpine.yml index ab15398ea2..4fa41aae62 100644 --- a/.github/workflows/ci-alpine.yml +++ b/.github/workflows/ci-alpine.yml @@ -24,18 +24,20 @@ jobs: - name: Build default configuration run: | # Tests must be run as a non-root user - mkdir build-default && chown guest:users build-default && cd $_ + adduser --home "$(pwd)/build-default" --no-create-home --disabled-password test users - sudo -u guest -i PWD="$PWD" \ + mkdir build-default && chown test:users build-default && cd $_ + + sudo -u test -i \ ../configure \ --prefix="$(pwd)/install" \ --enable-mclib \ --enable-aspell \ --disable-nls - sudo -u guest -i PWD="$PWD" make -j$(nproc) - sudo -u guest -i PWD="$PWD" make check - sudo -u guest -i PWD="$PWD" make install + sudo -u test -i make -j$(nproc) + sudo -u test -i make check + sudo -u test -i make install - uses: actions/upload-artifact@v4 if: failure()