From e638cddb43c798a9dac8e1ee4379c976bfd39d64 Mon Sep 17 00:00:00 2001 From: Thomas Sibley Date: Thu, 25 May 2023 15:56:59 -0700 Subject: [PATCH] wip! dbus --- .github/actions/setup-integration-tests/action.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-integration-tests/action.yaml b/.github/actions/setup-integration-tests/action.yaml index dce5a862..06c371dd 100644 --- a/.github/actions/setup-integration-tests/action.yaml +++ b/.github/actions/setup-integration-tests/action.yaml @@ -76,7 +76,7 @@ runs: # I'd rather test against that. # -trs, 6 Jan 2023 - if: runner.os == 'Linux' - shell: bash -l -eo pipefail {0} + shell: bash -l -eo pipefail -x {0} env: GITHUB_TOKEN: ${{ github.token }} run: | @@ -96,6 +96,13 @@ runs: sudo dpkg -i singularity.deb singularity --version + # Set up a lingering DBus service (required for Singularity's usage of + # cgroups v2). + sudo loginctl enable-linger "$USER" + systemctl --user enable --now dbus.socket + echo "XDG_RUNTIME_DIR=/run/user/$(id -u)" | tee -a "$GITHUB_ENV" + echo "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus" | tee -a "$GITHUB_ENV" + # Clone the small build we'll use as an integration test case. - run: git clone https://github.com/nextstrain/zika-tutorial shell: bash -l -eo pipefail {0}